code: def test_click_calls_callback(app: Page):
      button_element = (
          app.get_by_test_id("stButton").locator("button").first
      )
      expect(app.get_by_test_id("stMarkdown").nth(2)).to_contain_text(
          "Button was clicked: False"
      )
      button_element.click()
      expect(app.get_by_test_id("stMarkdown").nth(2)).to_have_text(
          "Button was clicked: True"
      )
      expect(app.get_by_test_id("stMarkdown").nth(3)).to_have_text(
          "times clicked: 1"
      )
      expect(app.get_by_test_id("stMarkdown").nth(4)).to_have_text(
          "arg value: 1"
      )
      expect(app.get_by_test_id("stMarkdown").nth(5)).to_have_text(
          "kwarg value: 2"
      )
  
file_path: streamlit/e2e_playwright/st_button_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 5 for calling a global function with example usage: test_click_calls_callback(app) without return types