code: def test_unique_deleter():
      m.MyObject4a(0)
      o = m.MyObject4b(23)
      assert o.value == 23
      cstats4a = ConstructorStats.get(m.MyObject4a)
      assert cstats4a.alive() == 2
      cstats4b = ConstructorStats.get(m.MyObject4b)
      assert cstats4b.alive() == 1
      del o
      assert cstats4a.alive() == 1  # Should now only be one leftover
      assert cstats4b.alive() == 0  # Should be deleted
      m.MyObject4a.cleanup_all_instances()
      assert cstats4a.alive() == 0
      assert cstats4b.alive() == 0
  
file_path: coremltools/deps/pybind11/tests/test_smart_ptr.py
imports: import pytest
  from pybind11_tests import ConstructorStats
label_desc: Use image node_id 5 for calling a global function with example usage: test_unique_deleter() without return types