code: def test_selective_readonly_buffer():
      buf = m.BufferReadOnlySelect()
  
      memoryview(buf)[0] = 0x64
      assert buf.value == 0x64
  
      io.BytesIO(b"A").readinto(buf)
      assert buf.value == ord(b"A")
  
      buf.readonly = True
      with pytest.raises(TypeError):
          memoryview(buf)[0] = 0
      with pytest.raises(TypeError):
          io.BytesIO(b"1").readinto(buf)
  
file_path: coremltools/deps/pybind11/tests/test_buffers.py
imports: import ctypes
  import io
  import struct
  import pytest
  import env
  from pybind11_tests import ConstructorStats
  from pybind11_tests import buffers
label_desc: Use image node_id 6 for calling a global function with example usage: test_selective_readonly_buffer() without return types