code: def test_rollimg_rollaxis():
      # Check that rollimg and rollaxis do the same
      AT = AffineTransform
      data = np.random.standard_normal((3, 4, 7, 5))
      aff = np.diag([1, 2, 3, 4, 1])
      img = Image(data, AT("ijkl", "xyzt", aff))
      for axis in chain(range(4), range(-3, -1)):
          rdata = np.rollaxis(data, axis)
          rimg = rollimg(img, axis)
          assert_array_equal(rdata, rimg.get_fdata())
          for start in chain(range(4), range(-3, -1)):
              rdata = np.rollaxis(data, axis, start)
              rimg = rollimg(img, axis, start)
              assert_array_equal(rdata, rimg.get_fdata())
  
imports: import warnings
  from itertools import chain
  import nibabel
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from ...api import data_generator, parcels, write_data
  from ...reference.coordinate_map import AffineTransform, AxisError
  from ...reference.coordinate_system import CoordinateSystem
  from ..None import image
  from ..image import Image, is_image, iter_axis, rollimg
label_desc: Use image node_id 23 for calling a global function with example usage: test_rollimg_rollaxis() without return types