code: def test_default_makers(vars):
      # Tests that the makers make expected coordinate maps
      for csm, r_names, r_name in (
          (vox2scanner, vars["scanner_xyzs"] + ["t"], "scanner"),
          (vox2unknown, vars["unknown_xyzs"] + ["t"], "unknown"),
          (vox2aligned, vars["aligned_xyzs"] + ["t"], "aligned"),
          (vox2mni, vars["mni_xyzs"] + ["t"], "mni"),
          (vox2talairach, vars["talairach_xyzs"] + ["t"], "talairach"),
      ):
          for i in range(1, 5):
              dom_cs = CS("ijkl"[:i], "voxels")
              ran_cs = CS(r_names[:i], r_name)
              aff = np.diag(list(range(i)) + [1])
              assert csm(aff) == AffineTransform(dom_cs, ran_cs, aff)
  
file_path: nipy/nipy/core/reference/tests/test_spaces.py
imports: import numpy
  import pytest
  from nibabel.affines import from_matvec
  from numpy.testing import assert_array_equal
  from ...image.image import Image
  from ..coordinate_map import AffineTransform, CoordinateMap
  from ..coordinate_system import CoordinateSystem
  from ..coordinate_system import CoordSysMakerError
  from ..spaces import AffineError, AxesError, SpaceError, SpaceTypeError, XYZSpace, get_world_cs, is_xyz_affable, is_xyz_space, known_space, known_spaces, mni_csm, mni_space, vox2aligned, vox2mni, vox2scanner, vox2talairach, vox2unknown, xyz_affine, xyz_order
label_desc: Use image node_id 6 for calling a global function with example usage: test_default_makers(vars) without return types