code: def __init__(self, callback):
      self.exit_code = None
      self.exception = None
      self.signal = None
      self._exit_callback = callback
      self._org_handlers = {}
      self._signal_recursion_protection_flag = False
      self._except_recursion_protection_flag = False
      self._import_bind_path = os.path.join(
          "clearml", "binding", "import_bind.py"
      )
  
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 1 to create a new ExitHooks object from inherited base classes: object with example: obj = ExitHooks(callback)