code: def was_ctrl_c(self) -> bool:
      return isinstance(self.exception, KeyboardInterrupt)
  
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 4 for calling the ExitHooks obj's underlying member method code with example usage: obj.was_ctrl_c() and returns: isinstance