code: def test_supports_navigating_to_page_directly_via_url(
      page: Page, app_port: int
  ):
      """Test that we can navigate to a page directly via URL."""
      page.goto(f"http://localhost:{app_port}/page2")
      wait_for_app_loaded(page)
  
      expect(page.get_by_test_id("stHeading")).to_contain_text("Page 2")
  
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 4 for calling a global function with example usage: test_supports_navigating_to_page_directly_via_url(page, app_port) without return types