code: def del_from_kth_multiselect(page: Page, option_text: str, k: int):
      """Delete an option from a multiselect widget.
  
      Parameters
      ----------
      page : Page
          The playwright page to use.
      option_text : str
          The text of the option to delete.
      k : int
          The index of the multiselect widget to delete from.
      """
      multiselect_elem = page.locator(".stMultiSelect").nth(k)
      multiselect_elem.locator(
          f'span[data-baseweb="tag"] span[title="{option_text}"] + span[role="presentation"]'
      ).first.click()
  
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 2 for calling a global function with example usage: del_from_kth_multiselect(page, option_text, k) without return types