def METHOD_NAME():
    example_award_fields = [
        "Award ID",
        "Recipient Name",
        "Start Date",
        "End Date",
        "Award Amount",
        "Awarding Agency",
        "Awarding Sub Agency",
        "Contract Award Type",
    ]
    example_subaward_fields = [
        "Sub-Award ID",
        "Prime Recipient Name",
        "Sub-Award Date",
        "Sub-Awardee Name",
        "Sub-Award Amount",
        "Awarding Agency",
        "Awarding Sub Agency",
        "Sub-Award Type",
    ]
    assert raise_if_sort_key_not_valid(sort_key="Award ID", field_list=example_award_fields, is_subaward=False) is None
    assert raise_if_sort_key_not_valid(sort_key="End Date", field_list=example_award_fields, is_subaward=False) is None
    assert (
        raise_if_sort_key_not_valid(sort_key="Awarding Agency", field_list=example_subaward_fields, is_subaward=True)
        is None
    )
    assert (
        raise_if_sort_key_not_valid(sort_key="Sub-Award ID", field_list=example_subaward_fields, is_subaward=True)
        is None
    )
    with pytest.raises(InvalidParameterException):
        # Valid mapping, but missing from the field list
        raise_if_sort_key_not_valid(sort_key="Description", field_list=example_award_fields, is_subaward=False)
    with pytest.raises(InvalidParameterException):
        raise_if_sort_key_not_valid(sort_key="Bad Key", field_list=example_award_fields, is_subaward=False)
    with pytest.raises(InvalidParameterException):
        raise_if_sort_key_not_valid(sort_key="", field_list=example_award_fields, is_subaward=False)
    with pytest.raises(InvalidParameterException):
        raise_if_sort_key_not_valid(sort_key=None, field_list=example_award_fields, is_subaward=False)
    with pytest.raises(InvalidParameterException):
        raise_if_sort_key_not_valid(sort_key="Bad Key", field_list=example_subaward_fields, is_subaward=True)
    with pytest.raises(InvalidParameterException):
        raise_if_sort_key_not_valid(sort_key="Description", field_list=example_subaward_fields, is_subaward=True)