code: def test_no_time():
      # Check that no time axis results in extra length 1 dimension
      data = np.random.normal(size=(2, 3, 4, 5, 6, 7))
      aff = np.diag([2.0, 3, 4, 5, 6, 7, 1])
      xyz_names = talairach_csm(3).coord_names
      in_cs = CS("ijklmn")
      # No change in shape if there's a time-like axis
      for time_like in ("t", "hz", "ppm", "rads"):
          cmap = AT(in_cs, CS(xyz_names + (time_like, "q", "r")), aff)
          ni_img = nipy2nifti(Image(data, cmap))
          assert_array_equal(ni_img.get_fdata(), data)
      # But there is if no time-like
      for no_time in ("random", "words", "I", "thought", "of"):
          cmap = AT(in_cs, CS(xyz_names + (no_time, "q", "r")), aff)
          ni_img = nipy2nifti(Image(data, cmap))
          assert_array_equal(
              ni_img.get_fdata(), data[:, :, :, None, :, :]
          )
  
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 13 for calling a global function with example usage: test_no_time() without return types