code: def test_issue95818(self):
      # See GH-95818 for details
      code = textwrap.dedent(
          f"""
              import gc
  
              gc.set_threshold(1,1,1)
              class GCHello:
                  def __del__(self):
                      print("Destroyed from gc")
  
              def gen():
                  yield
  
              fd = open({__file__!r})
              l = [fd, GCHello()]
              l.append(l)
              del fd
              del l
              gen()
          """
      )
      assert_python_ok("-c", code)
  
imports: import gc
  import operator
  import re
  import sys
  import textwrap
  import threading
  import types
  import unittest
  import weakref
  from test import support
  from test.support import threading_helper
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 1 for calling the TestIncompleteFrameAreInvisible obj's underlying member method code with example usage: obj.test_issue95818() without return types