<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def level_to_action(level):
 """Map action level to action name."""

    try:
        return LEVEL_ACTION_MAP[level]
    except LookupError:
        raise d1_common.types.exceptions.InvalidRequest(
            0, 'Unknown action level. level="{}"'.format(level)
        )