code: def test_runs_the_first_page_with_a_duplicate_name_if_navigating_via_url(
      page: Page, app_port: int
  ):
      """Test that we run the first page with a duplicate name if navigating via URL."""
      page.goto(f"http://localhost:{app_port}/page_with_duplicate_name")
      wait_for_app_loaded(page)
  
      expect(page.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 8 for calling a global function with example usage: test_runs_the_first_page_with_a_duplicate_name_if_navigating_via_url(page, app_port) without return types