code: def test_invalid_size(self):
      # test size length mismatch
      shape = (6, 8)
      for xp, scp in zip((numpy, cupy), (scipy, cupyx.scipy)):
          with pytest.raises(RuntimeError):
              scp.ndimage.fourier_ellipsoid(
                  xp.ones(shape), size=(2, 3, 4)
              )
          with pytest.raises(RuntimeError):
              scp.ndimage.fourier_ellipsoid(xp.ones(shape), size=(4,))
      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 4 for calling the TestFourierEllipsoidInvalid obj's underlying member method code with example usage: obj.test_invalid_size() without return types