code: def test_dimensions(self):
      for i in range(1, 5):
          coef = [0] * i + [1]
          assert_(leg.legcompanion(coef).shape == (i, i))
  
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 TestCompanion obj's underlying member method code with example usage: obj.test_dimensions() without return types