code: def test_legder_axis(self):
      # check that axis keyword works
      c2d = np.random.random((3, 4))
  
      tgt = np.vstack([leg.legder(c) for c in c2d.T]).T
      res = leg.legder(c2d, axis=0)
      assert_almost_equal(res, tgt)
  
      tgt = np.vstack([leg.legder(c) for c in c2d])
      res = leg.legder(c2d, axis=1)
      assert_almost_equal(res, tgt)
  
imports: from functools import reduce
  import numpy
  import numpy.polynomial.legendre
  from numpy.polynomial.polynomial import polyval
  from numpy.testing import assert_almost_equal, assert_raises, assert_equal, assert_
label_desc: Use image node_id 2 for calling the TestDerivative obj's underlying member method code with example usage: obj.test_legder_axis() without return types