parameters: (value, enum_klass)
docstring: Convert a numeric value to an IntEnum member.
      If it's not a known member, return the numeric value itself.
docstring_summary: Convert a numeric value to an IntEnum member.
      If it's not a known member, return the numeric value itself.
docstring_tokens: Convert a numeric value to an IntEnum member . If it s not a known member return the numeric value itself .
function: def _int_to_enum(value, enum_klass):
      """Convert a numeric value to an IntEnum member.
      If it's not a known member, return the numeric value itself.
      """
      try:
          return enum_klass(value)
      except ValueError:
          return value
function_tokens: def _int_to_enum ( value , enum_klass ) : try : return enum_klass ( value ) except ValueError : return value