code: def test_latex():
      script = AppTest.from_string(
          """
          import streamlit as st
  
          st.latex("E=mc^2")
          """,
      )
      sr = script.run()
  
      assert sr.latex
      assert sr.latex[0].type == "latex"
      assert sr.latex[0].value == "$$\nE=mc^2\n$$"
  
      repr(sr.latex[0])
  
imports: from datetime import date, datetime, time
  import numpy
  import pandas
  import pytest
  from streamlit.elements.markdown import MARKDOWN_HORIZONTAL_RULE_EXPRESSION
  from streamlit.testing.v1.app_test import AppTest
label_desc: Use image node_id 20 for calling a global function with example usage: test_latex() without return types