code: def test_text_input_interaction():
      """Test interactions with an empty text_input widget."""
  
      def script():
          import streamlit as st
  
          st.text_input("the label", value=None)
  
      at = AppTest.from_function(script).run()
      text_input = at.text_input[0]
      assert text_input.value is None
  
      # Input a value:
      at = text_input.input("Foo").run()
      text_input = at.text_input[0]
      assert text_input.value == "Foo"
  
      # # Clear the value
      at = text_input.set_value(None).run()
      text_input = at.text_input[0]
      assert text_input.value is None
  
imports: import re
  from unittest.mock import MagicMock, patch
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.proto.TextInput_pb2 import TextInput
  from streamlit.testing.v1.app_test import AppTest
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: test_text_input_interaction() without return types