code: def test_polyint_axis(self):
      # check that axis keyword works
      c2d = np.random.random((3, 4))
  
      tgt = np.vstack([poly.polyint(c) for c in c2d.T]).T
      res = poly.polyint(c2d, axis=0)
      assert_almost_equal(res, tgt)
  
      tgt = np.vstack([poly.polyint(c) for c in c2d])
      res = poly.polyint(c2d, axis=1)
      assert_almost_equal(res, tgt)
  
      tgt = np.vstack([poly.polyint(c, k=3) for c in c2d])
      res = poly.polyint(c2d, k=3, axis=1)
      assert_almost_equal(res, tgt)
  
imports: from functools import reduce
  from fractions import Fraction
  import numpy
  import numpy.polynomial.polynomial
  import pickle
  from copy import deepcopy
  from numpy.testing import assert_almost_equal, assert_raises, assert_equal, assert_, assert_array_equal, assert_raises_regex
label_desc: Use image node_id 2 for calling the TestIntegral obj's underlying member method code with example usage: obj.test_polyint_axis() without return types