code: def raiseCaughtException():
      """Raise and catch an exception"""
      x = "inside raiseCaughtException()"
      try:
          raise Exception(f"Raised an exception {x} in {threadName()}")
      except Exception:
          print(
              f"Raised and caught exception {x} in {threadName()}  trace: {sys._getframe().f_trace}"
          )
  
imports: import sys
  import queue
  import functools
  import threading
  import pyqtgraph
  import pyqtgraph.console
  from pyqtgraph.Qt import QtWidgets
  from pyqtgraph.debug import threadName
label_desc: Use image node_id 4 for calling a global function with example usage: raiseCaughtException() without return types