code: def test_caption():
      script = AppTest.from_string(
          """
          import streamlit as st
  
          st.caption("This is a caption")
          """,
      )
      sr = script.run()
  
      assert sr.caption
      assert sr.caption[0].type == "caption"
      assert sr.caption[0].value == "This is a caption"
      assert sr.caption[0].is_caption
  
      repr(sr.caption[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 17 for calling a global function with example usage: test_caption() without return types