code: def test_basic(self, xp, scp):
      # Some basic tests
  
      # Regression test for issue #scipy/3603.
      # window.shape must equal to sig.shape[0]
      sig = xp.arange(128)
      num = 256
      win = scp.signal.get_window(("kaiser", 8.0), 160)
  
      with pytest.raises(ValueError):
          scp.signal.resample(sig, num, window=win)
  
      # Other degenerate conditions
      with pytest.raises(ValueError):
          scp.signal.resample_poly(sig, "yo", 1)
  
      with pytest.raises(ValueError):
          scp.signal.resample_poly(sig, 1, 0)
  
      # with pytest.raises(ValueError):
      #     scp.signal.resample_poly(sig, 2, 1, padtype='')
  
      # with pytest.raises(ValueError):
      #     scp.signal.resample_poly(sig, 2, 1, padtype='mean', cval=10)
  
      # test for issue #scipy/6505 - should not modify window.shape
      # when axis ≠ 0
      sig2 = xp.tile(xp.arange(160), (2, 1))
      return scp.signal.resample(sig2, num, axis=-1, window=win).copy()
  
imports: import cupy
  from cupy import testing
  import cupyx.scipy.signal
  import cupyx.scipy.signal.windows
  import numpy
  import pytest
  from math import gcd
label_desc: Use image node_id 1 for calling the TestResample obj's underlying member method code with example usage: obj.test_basic(xp, scp) and returns: scp