code: def test_button_widget_rendering(
      themed_app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that the button widgets are correctly rendered via screenshot matching."""
      button_elements = themed_app.get_by_test_id("stButton")
      expect(button_elements).to_have_count(15)
  
      assert_snapshot(button_elements.nth(0), name="st_button-default")
      assert_snapshot(button_elements.nth(1), name="st_button-disabled")
      assert_snapshot(button_elements.nth(2), name="st_button-primary")
      assert_snapshot(
          button_elements.nth(3), name="st_button-disabled_primary"
      )
      assert_snapshot(
          button_elements.nth(4), name="st_button-use_container_width"
      )
      assert_snapshot(
          button_elements.nth(5),
          name="st_button-use_container_width_help",
      )
      assert_snapshot(
          button_elements.nth(6), name="st_button-styled_label"
      )
  
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 1 for calling a global function with example usage: test_button_widget_rendering(themed_app, assert_snapshot) without return types