code: def test_cm__setattr__raise_error():
      # CoordinateMap has all read-only attributes
  
      # AffineTransform has some properties and it seems
      # the same __setattr__ doesn't work for it.
      ijk = CoordinateSystem("ijk")
      xyz = CoordinateSystem("xyz")
  
      cm = CoordinateMap(ijk, xyz, np.exp)
  
      pytest.raises(
          AttributeError, cm.__setattr__, "function_range", xyz
      )
  
imports: from copy import copy
  from types import SimpleNamespace
  import numpy
  from ..coordinate_map import AffineTransform, AxisError, CoordinateMap, CoordMapMaker, CoordMapMakerError, _as_coordinate_map, _fix0, append_io_dim, axmap, compose, drop_io_dim, equivalent, input_axis_index, io_axis_indices, orth_axes, product, shifted_domain_origin, shifted_range_origin
  from ..coordinate_system import CoordinateSystem, CoordinateSystemError, CoordSysMaker
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
label_desc: Use image node_id 31 for calling a global function with example usage: test_cm__setattr__raise_error() without return types