code: def test_show_not_found_dialog(page: Page, app_port: int):
      """Test that we show a not found dialog if the page doesn't exist."""
      page.goto(f"http://localhost:{app_port}/not_a_page")
      wait_for_app_loaded(page)
  
      expect(page.locator('[role="dialog"]')).to_contain_text(
          "Page not found"
      )
  
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 9 for calling a global function with example usage: test_show_not_found_dialog(page, app_port) without return types