code: def test_readonly_attrs(eg_cs):
      cs = eg_cs.cs
      pytest.raises(
          AttributeError, setattr, cs, "coord_dtype", np.dtype(np.int32)
      )
      pytest.raises(
          AttributeError, setattr, cs, "coord_names", ["a", "b", "c"]
      )
      pytest.raises(
          AttributeError,
          setattr,
          cs,
          "dtype",
          np.dtype([("i", "<f4"), ("j", "<f4"), ("k", "<f4")]),
      )
      pytest.raises(AttributeError, setattr, cs, "ndim", 4)
  
imports: from types import SimpleNamespace
  import numpy
  import pytest
  from ..coordinate_system import CoordinateSystem, CoordinateSystemError, CoordSysMaker, CoordSysMakerError, is_coordsys, is_coordsys_maker, product, safe_dtype
label_desc: Use image node_id 7 for calling a global function with example usage: test_readonly_attrs(eg_cs) without return types