code: def test_out_of_order_blocks() -> None:
      # Regression test for #7711
      def script():
          import streamlit as st
  
          container = st.container()
          with container:
              st.markdown("BarFoo")
  
              def button_one_clicked(cont):
                  cont.info("Hi!")
                  cont.markdown("FooBar")
  
              st.button(
                  "one", on_click=button_one_clicked, args=[container]
              )
  
      at = AppTest.from_function(script).run()
  
      at.button[0].click().run()
  
      assert at.markdown.len == 2
      assert at.info[0].value == "Hi!"
      assert at.markdown.values == ["FooBar", "BarFoo"]
  
file_path: streamlit/lib/tests/streamlit/testing/app_test_test.py
imports: import pytest
  from streamlit.testing.v1 import AppTest
label_desc: Use image node_id 11 for calling a global function with example usage: test_out_of_order_blocks() without return types