code: def test_invalid_axis(self):
      # SciPy should raise here too because >3d isn't implemented, but
      # as of 1.5.4, it does not.
      shape = (6, 8)
      for xp, scp in zip((numpy, cupy), (scipy, cupyx.scipy)):
          with pytest.raises(numpy.AxisError):
              scp.ndimage.fourier_ellipsoid(xp.ones(shape), 2, axis=2)
          with pytest.raises(numpy.AxisError):
              scp.ndimage.fourier_ellipsoid(xp.ones(shape), 2, axis=-3)
      return
  
imports: import cupy
  import numpy
  import pytest
  from cupy import testing
  import cupyx.scipy.fft
  import cupyx.scipy.fftpack
  import cupyx.scipy.ndimage
label_desc: Use image node_id 3 for calling the TestFourierEllipsoidInvalid obj's underlying member method code with example usage: obj.test_invalid_axis() without return types