code: def test_load_no_time():
      # Without setting anything else, length 1 at position 3 makes time go away
      ns_dims = (5, 6, 7)
      xyz_aff = np.diag([2, 3, 4, 1])
      xyz_names = aligned_csm(3).coord_names[:3]
      in_names = tuple("ijkuvw")
      out_names = xyz_names + tuple("uvw")
      for n_ns in 1, 2, 3:
          ndim = 3 + n_ns
          data = np.random.normal(size=(2, 3, 4, 1) + ns_dims[:n_ns])
          ni_img_no_t = nib.Nifti1Image(data, xyz_aff)
          cmap_no_t = AT(
              CS(in_names[:ndim], name="voxels"),
              CS(out_names[:ndim], name="aligned"),
              np.diag([2, 3, 4] + [1] * n_ns + [1]),
          )
          img = nifti2nipy(ni_img_no_t)
          assert img.coordmap == cmap_no_t
      # We add do time if 4th axis of length 1 is the last axis
      data41 = np.zeros((3, 4, 5, 1))
      ni_img_41 = nib.Nifti1Image(data41, xyz_aff)
      cmap_41 = AT(
          CS("ijkt", name="voxels"),
          CS(xyz_names + ("t",), name="aligned"),
          np.diag([2, 3, 4, 1, 1]),
      )
      img = nifti2nipy(ni_img_41)
      assert img.coordmap == cmap_41
  
imports: import warnings
  from copy import copy
  import nibabel
  import numpy
  import pytest
  from nibabel.affines import from_matvec
  from nibabel.spatialimages import HeaderDataError
  from numpy.testing import assert_array_equal
  from ...core.api import AffineTransform
  from ...core.api import CoordinateSystem
  from ...core.api import Image
  from ...core.reference.spaces import aligned_csm, mni_csm, scanner_csm, talairach_csm, unknown_csm, unknown_space, vox2mni
  from ...testing import anatfile, funcfile
  from ..files import load
  from ..nibcompat import get_affine, get_header
  from ..nifti_ref import NiftiError, nifti2nipy, nipy2nifti
label_desc: Use image node_id 19 for calling a global function with example usage: test_load_no_time() without return types