code: def test_heading_elements_by_type():
      script = AppTest.from_string(
          """
          import streamlit as st
  
          st.title("title1")
          st.header("header1")
          st.subheader("subheader1")
  
          st.title("title2")
          st.header("header2")
          st.subheader("subheader2")
          """,
      )
      sr = script.run()
  
      assert len(sr.title) == 2
      assert len(sr.header) == 2
      assert len(sr.subheader) == 2
  
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 14 for calling a global function with example usage: test_heading_elements_by_type() without return types