code: def test_dims():
      fimg = load_image(funcfile)
      # make sure time dimension is correctly set in affine
      assert_array_equal(fimg.coordmap.affine[3, 3], 2.0)
      # should follow, but also make sure affine is invertible
      ainv = fimg.coordmap.inverse
      assert not ainv is None
  
imports: from numpy.testing import assert_array_equal
  from nipy import load_image
  from nipy.testing import funcfile
label_desc: Use image node_id 1 for calling a global function with example usage: test_dims() without return types