code: def test_slice_steps():
      dim0, dim1, dim2 = gimg.shape
      slice_z = slice(0, dim0, 2)
      slice_y = slice(0, dim1, 2)
      slice_x = slice(0, dim2, 2)
      x = gimg[slice_z, slice_y, slice_x]
      newshape = tuple(np.floor((np.array(gimg.shape) - 1) / 2) + 1)
      assert x.shape == newshape
      x = gimg[0:dim0:2, 0:dim1:2, 0:dim2:2]
      assert x.shape == newshape
  
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 7 for calling a global function with example usage: test_slice_steps() without return types