code: def test_display_images(app: Page):
      """Test that st.write displays images (including matplotlib charts)."""
      image_elements = app.get_by_test_id("stImage")
      expect(image_elements).to_have_count(1)
  
file_path: streamlit/e2e_playwright/st_write_test.py
imports: from playwright.sync_api import Page, expect
label_desc: Use image node_id 6 for calling a global function with example usage: test_display_images(app) without return types