code: def test_4d_input(self):
      # SciPy should raise here too because >3d isn't implemented, but
      # as of 1.5.4, it does not.
      shape = (4, 6, 8, 10)
      for xp, scp in zip((cupy,), (cupyx.scipy,)):
          with pytest.raises(NotImplementedError):
              scp.ndimage.fourier_ellipsoid(xp.ones(shape), size=2)
      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 2 for calling the TestFourierEllipsoidInvalid obj's underlying member method code with example usage: obj.test_4d_input() without return types