code: def _enum_to_int(value):
      """Convert an IntEnum member to a numeric value.
      If it's not an IntEnum member return the value itself.
      """
      try:
          return int(value)
      except (ValueError, TypeError):
          return value
  
file_path: catboost/contrib/tools/python3/src/Lib/signal.py
imports: import _signal
  from _signal import *
  from enum import IntEnum
label_desc: Use image node_id 2 for calling a global function with example usage: _enum_to_int(value) and returns: int, value