code: def test_dimensions(self):
      for deg in range(1, 5):
          assert_(cheb.chebinterpolate(self.f, deg).shape == (deg + 1,))
  
imports: from functools import reduce
  import numpy
  import numpy.polynomial.chebyshev
  from numpy.polynomial.polynomial import polyval
  from numpy.testing import assert_almost_equal, assert_raises, assert_equal, assert_
label_desc: Use image node_id 3 for calling the TestInterpolate obj's underlying member method code with example usage: obj.test_dimensions() without return types