code: def test_text_input():
      script = AppTest.from_string(
          """
          import streamlit as st
  
          st.text_input("label")
          st.text_input("with default", value="default", max_chars=20)
          """,
      )
      sr = script.run()
  
      assert sr.text_input[0].value == ""
      assert sr.text_input[1].value == "default"
  
      long_string = "".join(["this is a long string fragment."] * 10)
      sr.text_input[0].input(long_string)
      sr2 = sr.text_input[1].input(long_string).run()
  
      assert sr2.text_input[0].value == long_string
      assert sr2.text_input[1].value == "default"
  
      repr(sr.text_input[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 34 for calling a global function with example usage: test_text_input() without return types