class_docstr: Class for converting input `\mathrm{\LaTeX}` strings into SymPy Expressions.
  It holds all the necessary internal data for doing so, and exposes hooks for
  customizing its behavior.
  
  Parameters
  ==========
  
  print_debug_output : bool, optional
  
      If set to ``True``, prints debug output to the logger. Defaults to ``False``.
  
  transform : bool, optional
  
      If set to ``True``, the class runs the Transformer class on the parse tree
      generated by running ``Lark.parse`` on the input string. Defaults to ``True``.
  
      Setting it to ``False`` can help with debugging the `\mathrm{\LaTeX}` grammar.
  
  grammar_file : str, optional
  
      The path to the grammar file that the parser should use. If set to ``None``,
      it uses the default grammar, which is in ``grammar/latex.lark``, relative to
      the ``sympy/parsing/latex/lark/`` directory.
  
  transformer : str, optional
  
      The name of the Transformer class to use. If set to ``None``, it uses the
      default transformer class, which is :py:func:`TransformToSymPyExpr`.
code: def doparse(self, s: str):
      if self.print_debug_output:
          _lark.logger.setLevel(logging.DEBUG)
  
      parse_tree = self.parser.parse(s)
  
      if not self.transform_expr:
          # exit early and return the parse tree
          _lark.logger.debug("expression =", s)
          _lark.logger.debug(parse_tree)
          _lark.logger.debug(parse_tree.pretty())
          return parse_tree
  
      if self.print_debug_output:
          # print this stuff before attempting to run the transformer
          _lark.logger.debug("expression =", s)
          # print the `parse_tree` variable
          _lark.logger.debug(parse_tree.pretty())
  
      sympy_expression = self.transformer.transform(parse_tree)
  
      if self.print_debug_output:
          _lark.logger.debug("SymPy expression =", sympy_expression)
  
      return sympy_expression
  
file_path: sympy/sympy/parsing/latex/lark/latex_parser.py
imports: import os
  import logging
  import re
  from sympy.external import import_module
  from sympy.parsing.latex.lark.transformer import TransformToSymPyExpr
label_desc: Use image node_id 2 for calling the LarkLaTeXParser obj's underlying member method code with example usage: obj.doparse(s) and returns: sympy_expression, parse_tree