code: def register(fn):
      """Deprecated; see registerCallback
  
      Register a callable to be invoked when there is an unhandled exception.
      The callback will be passed the output of sys.exc_info(): (exception type, exception, traceback)
      Multiple callbacks will be invoked in the order they were registered.
      """
      old_callbacks.append(fn)
  
file_path: pyqtgraph/pyqtgraph/exceptionHandling.py
imports: import sys
  import threading
  import time
  import traceback
  from types import SimpleNamespace
label_desc: Use image node_id 3 for calling a global function with example usage: register(fn) without return types