code: def test_readonly_buffer():
      buf = m.BufferReadOnly(0x64)
      view = memoryview(buf)
      assert view[0] == 0x64
      assert view.readonly
      with pytest.raises(TypeError):
          view[0] = 0
  
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 5 for calling a global function with example usage: test_readonly_buffer() without return types