code: def test_clear_photo(app: Page):
      """Test camera_input removes photo when 'Clear photo' button clicked."""
      # Wait for some timeout, until fake video stream available for camera_input
      app.wait_for_timeout(3000)
      take_photo_button = app.get_by_test_id(
          "stCameraInputButton"
      ).first
      # Capture a photo
      take_photo_button.click()
      wait_for_app_run(app, wait_delay=3000)
      expect(app.get_by_test_id("stImage")).to_have_count(1)
      remove_photo_button = app.get_by_text("Clear photo").first
      remove_photo_button.click()
      wait_for_app_run(app, wait_delay=3000)
      expect(app.get_by_test_id("stImage")).to_have_count(0)
  
imports: import pytest
  from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_run
label_desc: Use image node_id 3 for calling a global function with example usage: test_clear_photo(app) without return types