code: def test_poly2leg(self):
      for i in range(10):
          assert_almost_equal(leg.poly2leg(Llist[i]), [0] * i + [1])
  
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 7 for calling the TestMisc obj's underlying member method code with example usage: obj.test_poly2leg() without return types