code: def __init__(self) -> None:
      self.exit_code = None  # typing: Optional[Union[int, str]]
      self.exception = None
  
imports: import atexit
  import logging
  import sys
  import threading
  import time
  import types
  from typing import Any, Optional, Union
  from determined.common import api
  from determined.common.api import bindings
label_desc: Use image node_id 1 to create a new _ExitHook object from inherited base classes: object with example: obj = _ExitHook()