code: def clear_frames(tb):
      "Clear all references to local variables in the frames of a traceback."
      while tb is not None:
          try:
              tb.tb_frame.clear()
          except RuntimeError:
              # Ignore the exception raised if the frame is still executing.
              pass
          tb = tb.tb_next
  
imports: import collections.abc
  import itertools
  import linecache
  import sys
  import textwrap
  from contextlib import suppress
label_desc: Use image node_id 18 for calling a global function with example usage: clear_frames(tb) without return types