code: def test_residue_general(self, xp, scp, ba):
      # Test are taken from issue #4464, note that poles in scipy are
      # in increasing by absolute value order, opposite to MATLAB.
      b, a = map(xp.asarray, ba)
      r, p, k = scp.signal.residue(b, a)
      return r, p, k
  
imports: import numpy
  import pytest
  import cupy
  from cupy import testing
  import cupyx.scipy.signal
label_desc: Use image node_id 3 for calling the TestPartialFractionExpansion obj's underlying member method code with example usage: obj.test_residue_general(xp, scp, ba) and returns: r,  p,  k