code: def test_shared_ptr_gc():
      """// #187: issue involving std::shared_ptr<> return value policy & garbage collection"""
      from pybind11_tests.issues import ElementList, ElementA
  
      el = ElementList()
      for i in range(10):
          el.add(ElementA(i))
      pytest.gc_collect()
      for i, v in enumerate(el.get()):
          assert i == v.value()
  
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 5 for calling a global function with example usage: test_shared_ptr_gc() without return types