code: def test_expander_long_displays_correctly(
      themed_app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that long expanders are displayed correctly."""
      assert_snapshot(
          # expander_long
          themed_app.locator(".main [data-testid='stExpander']").nth(3),
          name="stExpander-long-expanded",
      )
      assert_snapshot(
          # collapsed_long
          themed_app.locator(".main [data-testid='stExpander']").nth(4),
          name="stExpander-long-collapsed",
      )
  
file_path: streamlit/e2e_playwright/st_expander_test.py
imports: 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_expander_long_displays_correctly(themed_app, assert_snapshot) without return types