code: def test_from_state_space(self, xp, scp):
      # H(z) = 2 / z^3 - 0.5 * z^2
      system_TF = scp.signal.dlti([2], [1, -0.5, 0, 0])
  
      A = xp.array([[0.5, 0, 0], [1, 0, 0], [0, 1, 0]])
      B = xp.array([[1, 0, 0]]).T
      C = xp.array([[0, 0, 2]])
      D = 0
  
      system_SS = scp.signal.dlti(A, B, C, D)
      w = 10.0 ** xp.arange(-3, 0, 0.5)
      w1, H1 = scp.signal.dfreqresp(system_TF, w=w)
      w2, H2 = scp.signal.dfreqresp(system_SS, w=w)
      return w1, H1, w2, H2
  
imports: from math import sqrt, pi
  from pytest import raises
  import cupy
  from cupy import testing
  import cupyx.scipy.signal
label_desc: Use image node_id 6 for calling the Test_dfreqresp obj's underlying member method code with example usage: obj.test_from_state_space(xp, scp) and returns: w1,  H1,  w2,  H2