docstr: Create a MathTextParser for the given backend *output*.
  
  Parameters
  ----------
  output : {"path", "agg"}
      Whether to return a `VectorParse` ("path") or a
      `RasterParse` ("agg", or its synonym "macosx").
code: def __init__(self, output):
      """
      Create a MathTextParser for the given backend *output*.
  
      Parameters
      ----------
      output : {"path", "agg"}
          Whether to return a `VectorParse` ("path") or a
          `RasterParse` ("agg", or its synonym "macosx").
      """
      self._output_type = _api.check_getitem(
          {"path": "vector", "agg": "raster", "macosx": "raster"},
          output=output.lower(),
      )
  
file_path: matplotlib/lib/matplotlib/mathtext.py
imports: import functools
  import logging
  import matplotlib
  from matplotlib import _api, _mathtext
  from matplotlib.ft2font import LOAD_NO_HINTING
  from matplotlib.font_manager import FontProperties
  from ._mathtext import RasterParse, VectorParse, get_unicode_index
label_desc: Use image node_id 1 to create a new MathTextParser object  with example: obj = MathTextParser(output)