def get_remote_branch(remote):
    """Gets the remote for a review.

    If there are multiple, prompts the user to choose.

    Args:
        remote: String containing the specific remote.

    Returns:
        Tuple of string containing the branch name and the commit hash (as a
            string) of HEAD in that branch.
    """
    branches = get_remote_branches_list(remote)
    no_branches_error = NO_BRANCHES_ERROR_TEMPLATE % (remote,)
    remote_branch = user_choice_from_list(
            branches.keys(), REMOTE_BRANCH_PROMPT, REMOTE_BRANCH_CHOICE_PROMPT,
            no_branches_error, INVALID_BRANCH_CHOICE)

    commit_hash = branches[remote_branch]
    return remote_branch, commit_hash
dataset/ETHPy150Open googlearchive/git-rv/utils.py/get_remote_branch/original