code: def exit(self, code: object = 0) -> "NoReturn":
      orig_code = code
      code = code if code is not None else 0
      code = code if isinstance(code, int) else 1
      self.exit_code = code
      self._orig_exit(orig_code)
  
file_path: wandb/wandb/sdk/lib/exit_hooks.py
imports: import sys
  import traceback
  from types import TracebackType
  from typing import TYPE_CHECKING, Optional, Type
  import wandb
  from wandb.errors import Error
label_desc: Use image node_id 3 for calling the ExitHooks obj's underlying member method code with example usage: obj.exit(code) without return types