def get_formatted_menu_choices(state, choices):
    """Returns a formatted string of menu choices."""
    choice_output = ''
    choice_keys = list(choices.keys())
    choice_keys.sort()
    for choice in choice_keys:
        choice_output += '   [$(red)' + choice + '$(nrm)]  ' + choices[choice
            ] + '$(eol)'
    if choice_output:
        choice_output += '$(eol)'
    return choice_output
