code: def test_chebpts2(self):
      # test exceptions
      assert_raises(ValueError, cheb.chebpts2, 1.5)
      assert_raises(ValueError, cheb.chebpts2, 1)
  
      # test points
      tgt = [-1, 1]
      assert_almost_equal(cheb.chebpts2(2), tgt)
      tgt = [-1, 0, 1]
      assert_almost_equal(cheb.chebpts2(3), tgt)
      tgt = [-1, -0.5, 0.5, 1]
      assert_almost_equal(cheb.chebpts2(4), tgt)
      tgt = [-1.0, -0.707106781187, 0, 0.707106781187, 1.0]
      assert_almost_equal(cheb.chebpts2(5), tgt)
  
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 9 for calling the TestMisc obj's underlying member method code with example usage: obj.test_chebpts2() without return types