code: def test_toast():
      def script():
          import streamlit as st
  
          st.toast("first")
          st.write("something in the main area")
          st.toast("second")
  
      at = AppTest.from_function(script).run()
      assert at.toast.len == 2
      assert at.toast.values == ["first", "second"]
  
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 36 for calling a global function with example usage: test_toast() without return types