code: def test_polydiv_type(self):
      # Make polydiv work for complex types
      msg = "Wrong type, should be complex"
      x = np.ones(3, dtype=complex)
      q, r = np.polydiv(x, x)
      assert_(q.dtype == complex, msg)
      msg = "Wrong type, should be float"
      x = np.ones(3, dtype=int)
      q, r = np.polydiv(x, x)
      assert_(q.dtype == float, msg)
  
imports: import os
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, _assert_valid_refcount
  import pytest
label_desc: Use image node_id 14 for calling the TestRegression obj's underlying member method code with example usage: obj.test_polydiv_type() without return types