code: def test_nd_crop():
      data = rng.random((50, 50, 50))
      out = slice_along_axes(data, [(0, 25)], axes=[2])
      np.testing.assert_array_equal(out, data[:, :, :25])
  
file_path: scikit-image/skimage/util/tests/test_slice_along_axes.py
imports: import numpy
  import pytest
  from skimage.util import slice_along_axes
label_desc: Use image node_id 6 for calling a global function with example usage: test_nd_crop() without return types