code: def test_display_json(app: Page):
      """Test that st.write displays dicts and arrays as json data."""
      json_elements = app.get_by_test_id("stJson")
      expect(json_elements).to_have_count(6)
  
file_path: streamlit/e2e_playwright/st_write_test.py
imports: from playwright.sync_api import Page, expect
label_desc: Use image node_id 3 for calling a global function with example usage: test_display_json(app) without return types