code: def _break_traceback_cycle_from_frame(frame):
      # Clear local variables in all inner frames, so as to break the
      # reference cycle.
      this_frame = sys._getframe(0)
      refs = gc.get_referrers(frame)
      while refs:
          for frame in refs:
              if frame is not this_frame and isinstance(
                  frame, types.FrameType
              ):
                  break
          else:
              # No frame found in referrers (finished?)
              break
          refs = None
          # Clear the frame locals, to try and break the cycle (it is
          # somewhere along the chain of execution frames).
          frame.clear()
          # To visit the inner frame, we need to find it among the
          # referrers of this frame (while `frame.f_back` would let
          # us visit the outer frame).
          refs = gc.get_referrers(frame)
      refs = frame = this_frame = None
  
imports: import os
  import contextlib
  import functools
  import gc
  import socket
  import sys
  import textwrap
  import types
  import warnings
label_desc: Use image node_id 11 for calling a global function with example usage: _break_traceback_cycle_from_frame(frame) without return types