code: def test_axis_slice(self):
      a = np.arange(12).reshape(3, 4)
  
      s = axis_slice(a, start=0, stop=1, axis=0)
      assert_array_equal(s, a[0:1, :])
  
      s = axis_slice(a, start=-1, axis=0)
      assert_array_equal(s, a[-1:, :])
  
      s = axis_slice(a, start=0, stop=1, axis=1)
      assert_array_equal(s, a[:, 0:1])
  
      s = axis_slice(a, start=-1, axis=1)
      assert_array_equal(s, a[:, -1:])
  
      s = axis_slice(a, start=0, step=2, axis=0)
      assert_array_equal(s, a[::2, :])
  
      s = axis_slice(a, start=0, step=2, axis=1)
      assert_array_equal(s, a[:, ::2])
  
file_path: catboost/contrib/python/scipy/py3/scipy/signal/tests/test_array_tools.py
imports: import numpy
  from numpy.testing import assert_array_equal
  from pytest import raises
  from scipy.signal._arraytools import axis_slice, axis_reverse, odd_ext, even_ext, const_ext, zero_ext
label_desc: Use image node_id 1 for calling the TestArrayTools obj's underlying member method code with example usage: obj.test_axis_slice() without return types