def user_prompt_yes_no(**kwargs):
    """
    This function takes in a prompt string and asks the user to select "0" or "1" for No and Yes, respectively. User
    choice is returned as integer 0 or 1.

    :param kwargs: message: User prompt that is displayed in console.
    :return: selection: User selection (integer 0 or 1)
    """
    message = ''
    if 'message' in kwargs:
        message = kwargs['message']
    while True:
        prompt = '\n{}\n[0] No\n[1] Yes\n'.format(message)
        try:
            selection = int(input(prompt))
        except ValueError:
            print('\nOnly a single integer value allowed as input.')
            continue
        if selection not in [0, 1]:
            print(
                "Selection invalid. Please choose [0] for 'No' or [1] for 'Yes'."
                )
            continue
        else:
            break
    return selection
