def METHOD_NAME(prompt_name: str, get_user_input: GetInputFunc) -> bool:
    """Prompt user for a yes or no answer.
    Args:
        output_func: Function to output text to user.
        get_user_input: Function to get user input.
    Returns:
        The choice.
    """
    answer_map = {"yes": 1, "no": 0, "y": 1, "n": 0}
    try:
        answer = str(get_user_input(f"{prompt_name} Type in yes or no:"))
        return bool(answer_map[answer])
    except (ValueError, IndexError) as e:
        raise InvalidInput(str(e))