code: def exc_handler(self, exc_type: Any, exc: Any, *args: Any) -> None:
      self.exception = exc
      self._orig_excepthook(exc_type, exc, *args)
  
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 4 for calling the _ExitHook obj's underlying member method code with example usage: obj.exc_handler(exc_type, exc) without return types