code: def error_code_from_exception_type(cls):
      return _EXCEPTION_CLASS_TO_CODE[cls]
  
imports: import traceback
  import warnings
  from .None import error_codes
label_desc: Use image node_id 2 for calling a global function with example usage: error_code_from_exception_type(cls) and returns: _EXCEPTION_CLASS_TO_CODE