code: def exc_handler(self, exctype, value, traceback, *args, **kwargs):
      if (
          self._except_recursion_protection_flag
          or not self._orig_exc_handler
      ):
          # noinspection PyArgumentList
          return sys.__excepthook__(
              exctype, value, traceback, *args, **kwargs
          )
  
      self._except_recursion_protection_flag = True
      self.exception = value
  
      try:
          # remove us from import errors
          if (
              six.PY3
              and isinstance(exctype, type)
              and issubclass(exctype, ImportError)
          ):
              prev = cur = traceback
              while cur is not None:
                  tb_next = cur.tb_next
                  # if this is the import frame, we should remove it
                  if cur.tb_frame.f_code.co_filename.endswith(
                      self._import_bind_path
                  ):
                      # remove this frame by connecting the previous one to the next one
                      prev.tb_next = tb_next
                      cur.tb_next = None
                      del cur
                      cur = prev
  
                  prev = cur
                  cur = tb_next
      except:  # noqa
          pass
  
      if self._orig_exc_handler:
          # noinspection PyArgumentList
          ret = self._orig_exc_handler(
              exctype, value, traceback, *args, **kwargs
          )
      else:
          # noinspection PyNoneFunctionAssignment, PyArgumentList
          ret = sys.__excepthook__(
              exctype, value, traceback, *args, **kwargs
          )
      self._except_recursion_protection_flag = False
  
      return ret
  
file_path: clearml/clearml/utilities/process/exit_hooks.py
imports: import atexit
  import os
  import signal
  import sys
  import six
  from ...logger import Logger
label_desc: Use image node_id 8 for calling the ExitHooks obj's underlying member method code with example usage: obj.exc_handler(exctype, value, traceback) and returns: ret, sys