code: def test_time_pixdims():
      # Pixdims get moved across when a no-time extra axis is added
      shape = (2, 3, 4, 5, 6, 7)
      data = np.random.normal(size=shape)
      aff = np.diag([3, 4, 5, 6, 7, 8, 1])
      mni_names = mni_csm(3).coord_names
      in_cs = CS("ikjlmn")
      cmap = AT(in_cs, CS(mni_names + tuple("tuv")), aff)
      hdr = get_header(nipy2nifti(Image(data, cmap)))
      assert hdr.get_zooms() == (3, 4, 5, 6, 7, 8)
      cmap = AT(in_cs, CS(mni_names + tuple("quv")), aff)
      hdr = get_header(nipy2nifti(Image(data, cmap)))
      assert hdr.get_zooms() == (3, 4, 5, 0, 6, 7, 8)
  
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 8 for calling a global function with example usage: test_time_pixdims() without return types