code: def get_table_selected_rows(
      driver: WebDriver, table: DataTable
  ) -> set[int]:
      result = set()
      rows = find_elements_for(driver, table, ".slick-row")
      for i, row in enumerate(rows):
          elt = row.find_element(By.CSS_SELECTOR, ".slick-cell.l1.r1")
          if "selected" in elt.get_attribute("class"):
              result.add(i)
      return result
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Sequence
  from selenium.webdriver.common.action_chains import ActionChains
  from selenium.webdriver.common.by import By
  from selenium.webdriver.common.keys import Keys
  from bokeh.models import Button
label_desc: Use image node_id 21 for calling a global function with example usage: get_table_selected_rows(driver, table) and returns: result