code: def test_show_tooltip_on_hover(
      app: Page, assert_snapshot: ImageCompareFunction
  ):
      button_element = app.get_by_test_id("stButton").nth(5)
      button_element.hover()
      assert_snapshot(button_element, name="st_button-on_hover")
      expect(app.get_by_test_id("stTooltipContent")).to_have_text(
          "help text"
      )
  
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 8 for calling a global function with example usage: test_show_tooltip_on_hover(app, assert_snapshot) without return types