def get_upstream_repo(uri, vcs_type):
    global upstream_repos
    if upstream_repos not in uri:
        temp_dir = tempfile.mkdtemp()
        upstream_dir = os.path.join(temp_dir, 'upstream')
        upstream_repos[uri] = (temp_dir, get_vcs_client(vcs_type, upstream_dir))
    return upstream_repos[uri][1]
dataset/ETHPy150Open ros-infrastructure/bloom/bloom/commands/git/release.py/get_upstream_repo/swapped operands of `not in`