code: def exhibit_signal_refcycle():
      # Put an object in the frame locals and return a weakref to it.
      # If `signal.getsignal` has a bug where it creates a reference cycle
      # keeping alive the current execution frames, `obj` will not be
      # destroyed immediately when this function returns.
      obj = set()
      signal.getsignal(signal.SIGINT)
      return weakref.ref(obj)
  
imports: import gc
  import signal
  import sys
  import textwrap
  import weakref
  import pytest
  from pyarrow.util import doc, _break_traceback_cycle_from_frame
  from pyarrow.tests.util import disabled_gc
label_desc: Use image node_id 13 for calling a global function with example usage: exhibit_signal_refcycle() and returns: weakref