def _resolve_multiple_bundle_versions(catalog, bundle_name, version_ish):

    if version_ish == SymbolicBundleVersions.ALL:
        index = catalog.get_index()
        versions = index.versions_for_bundle(bundle_name)

    elif version_ish == SymbolicBundleVersions.UNREFERENCED:
        index = catalog.get_index()
        all_versions = index.versions_for_bundle(bundle_name)
        referenced_versions = catalog.index.distributions_for_bundle_by_version(bundle_name).keys()
        versions = [v for v in all_versions if v not in referenced_versions]

    single_version = _resolve_single_bundle_version(catalog, bundle_name, version_ish)
    if single_version is not None:
        versions = [single_version]

    return versions
dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/client.py/_resolve_multiple_bundle_versions/original