code: def test_colm008_top_row_by_subset(test):
      test.start_server(get_app(dict(column_selectable="multi")))
  
      target = test.table("table")
  
      target.column("ccc").select(1)
      target.column("ggg").select(1)
  
      for c in ["rows", "eee", "fff"]:
          for r in range(3):
              if target.column(c).exists(r):
                  assert not target.column(c).is_selected(r)
  
      for c in ["ccc", "ddd", "ggg"]:
          for r in range(1, 3):
              if target.column(c).exists(r):
                  assert target.column(c).is_selected(r)
  
      target.column("eee").select(1)
  
      for c in ["rows"]:
          for r in range(3):
              if target.column(c).exists(r):
                  assert not target.column(c).is_selected(r)
  
      for c in ["ccc", "ddd", "eee", "fff", "ggg"]:
          for r in range(3):
              if target.column(c).exists(r):
                  assert target.column(c).is_selected(r)
  
file_path: dash/components/dash-table/tests/selenium/test_column.py
imports: import dash
  from utils import get_props
  from dash.dash_table import DataTable
label_desc: Use image node_id 9 for calling a global function with example usage: test_colm008_top_row_by_subset(test) without return types