code: def test_property_return_value_policies(access):
      from pybind11_tests import TestPropRVP
  
      if not access.startswith("static"):
          obj = TestPropRVP()
      else:
          obj = TestPropRVP
  
      ref = getattr(obj, access + "_ref")
      assert ref.value == 1
      ref.value = 2
      assert getattr(obj, access + "_ref").value == 2
      ref.value = 1  # restore original value for static properties
  
      copy = getattr(obj, access + "_copy")
      assert copy.value == 1
      copy.value = 2
      assert getattr(obj, access + "_copy").value == 1
  
      copy = getattr(obj, access + "_func")
      assert copy.value == 1
      copy.value = 2
      assert getattr(obj, access + "_func").value == 1
  
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 4 for calling a global function with example usage: test_property_return_value_policies(access) without return types