code: def test_properties():
      from pybind11_tests import TestProperties
  
      instance = TestProperties()
  
      assert instance.def_readonly == 1
      with pytest.raises(AttributeError):
          instance.def_readonly = 2
  
      instance.def_readwrite = 2
      assert instance.def_readwrite == 2
  
      assert instance.def_property_readonly == 2
      with pytest.raises(AttributeError):
          instance.def_property_readonly = 3
  
      instance.def_property = 3
      assert instance.def_property == 3
  
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 2 for calling a global function with example usage: test_properties() without return types