code: def test_polydiv(self):
      b = np.poly1d([2, 6, 6, 1])
      a = np.poly1d([-1j, (1 + 2j), -(2 + 1j), 1])
      q, r = np.polydiv(b, a)
      assert_equal(q.coeffs.dtype, np.complex128)
      assert_equal(r.coeffs.dtype, np.complex128)
      assert_equal(q * a + r, b)
  
      c = [1, 2, 3]
      d = np.poly1d([1, 2, 3])
      s, t = np.polydiv(c, d)
      assert isinstance(s, np.poly1d)
      assert isinstance(t, np.poly1d)
      u, v = np.polydiv(d, c)
      assert isinstance(u, np.poly1d)
      assert isinstance(v, np.poly1d)
  
imports: import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_allclose
  import pytest
label_desc: Use image node_id 17 for calling the TestPolynomial obj's underlying member method code with example usage: obj.test_polydiv() without return types