code: def setTracebackClearing(clear=True):
      """
      Enable or disable traceback clearing.
      By default, clearing is disabled and Python will indefinitely store unhandled exception stack traces.
      This function is provided since Python's default behavior can cause unexpected retention of
      large memory-consuming objects.
      """
      global clear_tracebacks
      clear_tracebacks = clear
  
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 5 for calling a global function with example usage: setTracebackClearing(clear) without return types