code: def test_getdomain(self):
      # test for real values
      x = [1, 10, 3, -1]
      tgt = [-1, 10]
      res = pu.getdomain(x)
      assert_almost_equal(res, tgt)
  
      # test for complex values
      x = [1 + 1j, 1 - 1j, 0, 2]
      tgt = [-1j, 2 + 1j]
      res = pu.getdomain(x)
      assert_almost_equal(res, tgt)
  
file_path: catboost/contrib/python/numpy/py3/numpy/polynomial/tests/test_polyutils.py
imports: import numpy
  import numpy.polynomial.polyutils
  from numpy.testing import assert_almost_equal, assert_raises, assert_equal, assert_
label_desc: Use image node_id 1 for calling the TestDomain obj's underlying member method code with example usage: obj.test_getdomain() without return types