code: def test_mutate_readonly(arr):
      from pybind11_tests.array import (
          mutate_data,
          mutate_data_t,
          mutate_at_t,
      )
  
      arr.flags.writeable = False
      for func, args in (
          (mutate_data, ()),
          (mutate_data_t, ()),
          (mutate_at_t, (0, 0)),
      ):
          with pytest.raises(RuntimeError) as excinfo:
              func(arr, *args)
          assert str(excinfo.value) == "array is not writeable"
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_numpy_array.py
imports: import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_mutate_readonly(arr) without return types