class_docstr: Test the latex repr used by Jupyter
code: def as_latex(self, obj):
      # right now we ignore the formatting of scalars in our tests, since
      # it makes them too verbose. Ideally, the formatting of scalars will
      # be fixed such that tests below continue to pass
      obj._repr_latex_scalar = lambda x, parens=False: str(x)
      try:
          return obj._repr_latex_()
      finally:
          del obj._repr_latex_scalar
  
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 1 for calling the TestLatexRepr obj's underlying member method code with example usage: obj.as_latex(obj) and returns: obj