code: def test_square(self, duty, xp, scp):
      t = xp.linspace(0, 1, 500)
      return scp.signal.square(t, duty)
  
imports: import pytest
  import cupy
  from cupy import testing
  import cupyx.scipy.signal
  import numpy
label_desc: Use image node_id 1 for calling the TestSquare obj's underlying member method code with example usage: obj.test_square(duty, xp, scp) and returns: scp