class_docstr: Test the latex repr used by Jupyter
code: def test_basis_func(self):
      p = poly.Chebyshev([1, 2, 3])
      assert_equal(
          self.as_latex(p),
          r"$x \mapsto 1.0\,{T}_{0}(x) + 2.0\,{T}_{1}(x) + 3.0\,{T}_{2}(x)$",
      )
      # affine input - check no surplus parens are added
      p = poly.Chebyshev([1, 2, 3], domain=[-1, 0])
      assert_equal(
          self.as_latex(p),
          r"$x \mapsto 1.0\,{T}_{0}(1.0 + 2.0x) + 2.0\,{T}_{1}(1.0 + 2.0x) + 3.0\,{T}_{2}(1.0 + 2.0x)$",
      )
  
imports: from math import nan, inf
  import pytest
  from numpy.core import array, arange, printoptions
  import numpy.polynomial
  from numpy.testing import assert_equal, assert_
  from fractions import Fraction
  from decimal import Decimal
label_desc: Use image node_id 3 for calling the TestLatexRepr obj's underlying member method code with example usage: obj.test_basis_func() without return types