code: def test_mutate_readonly(arr):
      arr.flags.writeable = False
      for func, args in (
          (m.mutate_data, ()),
          (m.mutate_data_t, ()),
          (m.mutate_at_t, (0, 0)),
      ):
          with pytest.raises(ValueError) as excinfo:
              func(arr, *args)
          assert str(excinfo.value) == "array is not writeable"
  
imports: import pytest
  import env
  from pybind11_tests import numpy_array
label_desc: Use image node_id 9 for calling a global function with example usage: test_mutate_readonly(arr) without return types