def METHOD_NAME(kind_of_email_template, text_or_html):
    if kind_of_email_template == VERIFY_EMAIL_ADDRESS_TEMPLATE:
        if text_or_html == "HTML":
            return "verify_email_address.html"
        else:
            return "verify_email_address.txt"
    elif kind_of_email_template == CAMPAIGNX_FRIEND_HAS_SUPPORTED_TEMPLATE:
        if text_or_html == "HTML":
            return "campaignx_friend_has_supported.html"
        else:
            return "campaignx_friend_has_supported.txt"
    elif kind_of_email_template == CAMPAIGNX_NEWS_ITEM_TEMPLATE:
        if text_or_html == "HTML":
            return "campaignx_news_item.html"
        else:
            return "campaignx_news_item.txt"
    elif kind_of_email_template == CAMPAIGNX_SUPER_SHARE_ITEM_TEMPLATE:
        if text_or_html == "HTML":
            return "campaignx_super_share_item.html"
        else:
            return "campaignx_super_share_item.txt"
    elif kind_of_email_template == CAMPAIGNX_SUPPORTER_INITIAL_RESPONSE_TEMPLATE:
        if text_or_html == "HTML":
            return "campaignx_supporter_initial_response.html"
        else:
            return "campaignx_supporter_initial_response.txt"
    elif kind_of_email_template == FRIEND_INVITATION_TEMPLATE:
        if text_or_html == "HTML":
            return "friend_invitation.html"
        else:
            return "friend_invitation.txt"
    elif kind_of_email_template == FRIEND_ACCEPTED_INVITATION_TEMPLATE:
        if text_or_html == "HTML":
            return "friend_accepted_invitation.html"
        else:
            return "friend_accepted_invitation.txt"
    elif kind_of_email_template == LINK_TO_SIGN_IN_TEMPLATE:
        if text_or_html == "HTML":
            return "link_to_sign_in.html"
        else:
            return "link_to_sign_in.txt"
    elif kind_of_email_template == MESSAGE_TO_FRIEND_TEMPLATE:
        if text_or_html == "HTML":
            return "message_to_friend.html"
        else:
            return "message_to_friend.txt"
    elif kind_of_email_template == NOTICE_FRIEND_ENDORSEMENTS_TEMPLATE:
        if text_or_html == "HTML":
            return "notice_friend_endorsements.html"
        else:
            return "notice_friend_endorsements.txt"
    elif kind_of_email_template == NOTICE_VOTER_DAILY_SUMMARY_TEMPLATE:
        if text_or_html == "HTML":
            return "notice_voter_daily_summary.html"
        else:
            return "notice_voter_daily_summary.txt"
    elif kind_of_email_template == REMIND_CONTACT:
        if text_or_html == "HTML":
            return "remind_contact.html"
        else:
            return "remind_contact.txt"
    elif kind_of_email_template == SEND_BALLOT_TO_SELF:
        if text_or_html == "HTML":
            return "send_ballot_to_self.html"
        else:
            return "send_ballot_to_self.txt"
    elif kind_of_email_template == SEND_BALLOT_TO_FRIENDS:
        if text_or_html == "HTML":
            return "send_ballot_to_friends.html"
        else:
            return "send_ballot_to_friends.txt"
    elif kind_of_email_template == SIGN_IN_CODE_EMAIL_TEMPLATE:
        if text_or_html == "HTML":
            return "sign_in_code_email.html"
        else:
            return "sign_in_code_email.txt"
    # If the template wasn't recognized, return GENERIC_EMAIL_TEMPLATE
    if text_or_html == "HTML":
        return "generic_email.html"
    else:
        return "generic_email.txt"