code: def test_apply_along_axis_invalid_axis():
      for xp in [numpy, cupy]:
          a = xp.ones((8, 4))
          for axis in [-3, 2]:
              with pytest.raises(numpy.AxisError):
                  xp.apply_along_axis(xp.sum, axis, a)
  
file_path: cupy/tests/cupy_tests/lib_tests/test_shape_base.py
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_apply_along_axis_invalid_axis() without return types