code: def test_title():
      script = AppTest.from_string(
          """
          import streamlit as st
  
          st.title("This is a title")
          st.title("This is a title with anchor", anchor="anchor text")
          st.title("This is a title with hidden anchor", anchor=False)
          """,
      )
      sr = script.run()
  
      assert len(sr.title) == 3
      assert sr.title[1].tag == "h1"
      assert sr.title[1].anchor == "anchor text"
      assert sr.title[1].value == "This is a title with anchor"
      assert sr.title[2].hide_anchor
  
      repr(sr.title[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 11 for calling a global function with example usage: test_title() without return types