code: def test_echo():
      script = AppTest.from_string(
          """
          import streamlit as st
  
          with st.echo():
              st.write("Hello")
          """
      )
  
      sr = script.run()
  
      assert sr.code
      assert sr.code[0].type == "code"
      assert sr.code[0].language == "python"
      assert sr.code[0].value == """st.write("Hello")"""
  
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 19 for calling a global function with example usage: test_echo() without return types