code: def test_button():
      def script():
          import streamlit as st
  
          st.button("button")
          st.button("second button")
  
      sr = AppTest.from_function(script).run()
      assert sr.button[0].value == False
      assert sr.button[1].value == False
  
      sr2 = sr.button[0].click().run()
      assert sr2.button[0].value == True
      assert sr2.button[1].value == False
  
      sr3 = sr2.run()
      assert sr3.button[0].value == False
      assert sr3.button[1].value == False
  
      repr(sr.button[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 2 for calling a global function with example usage: test_button() without return types