code: def test_empty1(self):
      # can't apply_along_axis when there's no chance to call the function
      def never_call(x):
          assert False  # should never be reached
  
      for xp in [numpy, cupy]:
          a = xp.empty((0, 0))
          with pytest.raises(ValueError):
              xp.apply_along_axis(never_call, self.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 6 for calling the TestApplyAlongAxis obj's underlying member method code with example usage: obj.test_empty1() without return types