code: def test_multiselect_max_selections_1(app: Page):
      """Should show the correct text when maxSelections is reached and closing after selecting."""
      select_for_kth_multiselect(app, "male", 9, True)
      app.locator(".stMultiSelect").nth(9).click()
      expect(app.locator("li")).to_have_text(
          "You can only select up to 1 option. Remove an option first.",
          use_inner_text=True,
      )
  
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 10 for calling a global function with example usage: test_multiselect_max_selections_1(app) without return types