code: def test_multiselect_long_values_in_dropdown(
      app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Should show long values correctly (with ellipses) in the dropdown menu."""
      multiselect_elem = app.locator(".stMultiSelect").nth(4)
      multiselect_elem.locator("input").click()
      dropdown_elems = app.locator("li").all()
      for idx, el in enumerate(dropdown_elems):
          assert_snapshot(
              el, name="multiselect-dropdown-long-label-" + str(idx)
          )
  
file_path: streamlit/e2e_playwright/st_multiselect_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 7 for calling a global function with example usage: test_multiselect_long_values_in_dropdown(app, assert_snapshot) without return types