code: def __init__(self, mode: tp.Union[SigIntMode, str]):
      super().__init__()
      self.mode = (
          mode
          if isinstance(mode, SigIntMode)
          else SigIntMode(mode.upper())
      )
  
file_path: elegy/elegy/callbacks/sigint.py
imports: import enum
  import logging
  import signal
  import typing
  import numpy
  from .callback import Callback
label_desc: Use image node_id 1 to create a new SigInt object from inherited base classes: Callback with example: obj = SigInt(mode)