docs: 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)
          )