code: def test_box_slice():
      t = xslice(5, ([0, 9], 10), ([0, 9], 10), scanner_space)
      assert_array_almost_equal(
          t.affine,
          [
              [0.0, 0.0, 5.0],
              [1.0, 0.0, 0.0],
              [0.0, 1.0, 0.0],
              [0.0, 0.0, 1.0],
          ],
      )
      assert t.function_domain == CS(["i_y", "i_z"], "slice")
      assert t.function_range == scanner_csm(3)
      t = yslice(4, ([0, 9], 10), ([0, 9], 10), "mni")
      assert_array_almost_equal(
          t.affine,
          [
              [1.0, 0.0, 0.0],
              [0.0, 0.0, 4.0],
              [0.0, 1.0, 0.0],
              [0.0, 0.0, 1.0],
          ],
      )
      assert t.function_domain == CS(["i_x", "i_z"], "slice")
      assert t.function_range == mni_csm(3)
      t = zslice(3, ([0, 9], 10), ([0, 9], 10), mni_csm(3))
      assert_array_almost_equal(
          t.affine,
          [
              [1.0, 0.0, 0.0],
              [0.0, 1.0, 0.0],
              [0.0, 0.0, 3.0],
              [0.0, 0.0, 1.0],
          ],
      )
      assert t.function_domain == CS(["i_x", "i_y"], "slice")
      assert t.function_range == mni_csm(3)
  
imports: from numpy.testing import assert_array_almost_equal
  from ..coordinate_map import AffineTransform
  from ..coordinate_system import CoordinateSystem
  from ..slices import bounding_box, xslice, yslice, zslice
  from ..spaces import mni_csm, scanner_csm, scanner_space
label_desc: Use image node_id 2 for calling a global function with example usage: test_box_slice() without return types