code: def test_latex_conversion():
      """Latex parsing from rst into Jupyter Markdown"""
      double_inline_rst = r":math:`T<0` and :math:`U>0`"
      double_inline_jmd = r"$T<0$ and $U>0$"
      assert double_inline_jmd == rst2md(double_inline_rst)
  
      align_eq = r"""
  .. math::
     \mathcal{H} &= 0 \\
     \mathcal{G} &= D"""
  
      align_eq_jmd = r"""
  \begin{align}\mathcal{H} &= 0 \\
     \mathcal{G} &= D\end{align}"""
      assert align_eq_jmd == rst2md(align_eq)
  
file_path: tensorly/doc/sphinx_ext/sphinx_gallery/tests/test_notebook.py
imports: from __future__ import division, absolute_import, print_function
  import json
  import tempfile
  import os
  import pytest
  import sphinx_gallery.gen_rst
  from sphinx_gallery.notebook import rst2md, jupyter_notebook, save_notebook, python_to_jupyter_cli
label_desc: Use image node_id 1 for calling a global function with example usage: test_latex_conversion() without return types