code: def test_coordsys_maker():
      # Things that help making coordinate maps
      ax_names = list("ijklm")
      nl = len(ax_names)
      cs_maker = CoordSysMaker(ax_names, "myname")
      for i in range(1, nl + 1):
          assert cs_maker(i) == CoordinateSystem(
              ax_names[:i], "myname", np.float64
          )
      pytest.raises(CoordSysMakerError, cs_maker, nl + 1)
      # You can pass in your own name
      assert cs_maker(i, "anothername") == CoordinateSystem(
          ax_names[: i + 1], "anothername", np.float64
      )
      # And your own dtype if you really want
      assert cs_maker(i, coord_dtype=np.int32) == CoordinateSystem(
          ax_names[: i + 1], "myname", np.int32
      )
  
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 17 for calling a global function with example usage: test_coordsys_maker() without return types