code: def test_cyclic_gc():
      from pybind11_tests import DynamicClass
  
      # One object references itself
      instance = DynamicClass()
      instance.circular_reference = instance
  
      cstats = ConstructorStats.get(DynamicClass)
      assert cstats.alive() == 1
      del instance
      assert cstats.alive() == 0
  
      # Two object reference each other
      i1 = DynamicClass()
      i2 = DynamicClass()
      i1.cycle = i2
      i2.cycle = i1
  
      assert cstats.alive() == 2
      del i1, i2
      assert cstats.alive() == 0
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_methods_and_attributes.py
imports: import pytest
  from pybind11_tests import ExampleMandA, ConstructorStats
label_desc: Use image node_id 8 for calling a global function with example usage: test_cyclic_gc() without return types