code: def register_signal_handler():
      try:
          signal.signal(signal.SIGINT, _signal_handler)
      except ValueError:
          # This can happen if we are not in the MainThread.
          pass
  
file_path: tensorflow/tensorflow/python/debug/wrappers/grpc_wrapper.py
imports: import signal
  import sys
  import traceback
  from tensorflow.python.debug.lib import common
  from tensorflow.python.debug.wrappers import framework
label_desc: Use image node_id 3 for calling a global function with example usage: register_signal_handler() without return types