code: def test_tbst015_selected_row_respects_sort(test, props):
      test.start_server(get_app(props))
  
      target = test.table("table")
  
      target.row(0).select()
  
      assert target.row(0).is_selected()
  
      target.column(rawDf.columns[0]).sort()  # None -> ASC
      target.column(rawDf.columns[0]).sort()  # ASC -> DESC
  
      assert not target.row(0).is_selected()
  
      target.column(rawDf.columns[0]).sort()  # DESC -> None
  
      assert target.row(0).is_selected()
      assert test.get_log_errors() == []
  
imports: import dash
  from utils import read_write_modes
  from dash.dash_table import DataTable
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.action_chains import ActionChains
  import pandas
  import pytest
label_desc: Use image node_id 16 for calling a global function with example usage: test_tbst015_selected_row_respects_sort(test, props) without return types