code: def math_directive(
      name,
      arguments,
      options,
      content,
      lineno,
      content_offset,
      block_text,
      state,
      state_machine,
  ):
      latex = "".join(content)
      node = latex_math(block_text)
      node["latex"] = latex
      node["fontset"] = options.get("fontset", "cm")
      return [node]
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/sphinxext/mathmpl.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import hashlib
  import os
  import sys
  import warnings
  from docutils import nodes
  from docutils.parsers.rst import directives
  import sphinx
  from matplotlib import rcParams
  from matplotlib.mathtext import MathTextParser
label_desc: Use image node_id 3 for calling a global function with example usage: math_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine) and returns: list