code: def test_can_switch_to_the_first_page_with_a_duplicate_name(
      app: Page,
  ):
      """Test that we can switch to the first page with a duplicate name."""
      app.get_by_test_id("stSidebarNav").locator("a").nth(3).click()
      wait_for_app_run(app)
      expect(app.get_by_test_id("stHeading")).to_contain_text("Page 4")
  
file_path: streamlit/e2e_playwright/multipage_apps/mpa_basics_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_loaded, wait_for_app_run
label_desc: Use image node_id 6 for calling a global function with example usage: test_can_switch_to_the_first_page_with_a_duplicate_name(app) without return types