code: def test_as_series(self):
      # check exceptions
      assert_raises(ValueError, pu.as_series, [[]])
      assert_raises(ValueError, pu.as_series, [[[1, 2]]])
      assert_raises(ValueError, pu.as_series, [[1], ["a"]])
      # check common types
      types = ["i", "d", "O"]
      for i in range(len(types)):
          for j in range(i):
              ci = np.ones(1, types[i])
              cj = np.ones(1, types[j])
              [resi, resj] = pu.as_series([ci, cj])
              assert_(resi.dtype.char == resj.dtype.char)
              assert_(resj.dtype.char == types[i])
  
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 2 for calling the TestMisc obj's underlying member method code with example usage: obj.test_as_series() without return types