code: def test_enable_shared_from_this_with_reference_rvp():
      """Issue #471: shared pointer instance not dellocated"""
      from pybind11_tests import SharedParent, SharedChild
  
      parent = SharedParent()
      child = parent.get_child()
  
      cstats = ConstructorStats.get(SharedChild)
      assert cstats.alive() == 1
      del child, parent
      assert cstats.alive() == 0
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_issues.py
imports: import pytest
  from pybind11_tests import ConstructorStats
label_desc: Use image node_id 14 for calling a global function with example usage: test_enable_shared_from_this_with_reference_rvp() without return types