code: def test_alert():
      def script():
          import streamlit as st
  
          st.success("yay we did it", icon="🚨")
          st.info("something happened")
          st.warning("danger danger")
          st.error("something went terribly wrong", icon="💥")
  
      at = AppTest.from_function(script).run()
      assert at.error[0].value == "something went terribly wrong"
      assert at.error[0].icon == "💥"
      assert at.info[0].value == "something happened"
      assert at.success[0].value == "yay we did it"
      assert at.success[0].icon == "🚨"
      assert at.warning[0].value == "danger danger"
  
      # Verify that creating the reprs does not throw
      repr(at.error[0])
      repr(at.info[0])
      repr(at.success[0])
      repr(at.warning[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 1 for calling a global function with example usage: test_alert() without return types