code: def test_tmdl001_click_markdown_link(
      test, markdown_options, new_tab, cell_selectable
  ):
      test.start_server(get_app(cell_selectable, markdown_options))
  
      target = test.table("table")
  
      assert len(test.driver.window_handles) == 1
      target.cell(0, "a").find_inside("a").click()
  
      # Make sure the new tab is what's expected
      if new_tab:
          assert target.cell(0, "a").is_selected() == cell_selectable
  
          assert len(test.driver.window_handles) == 2
          test.driver.switch_to.window(test.driver.window_handles[1])
          assert test.driver.current_url.endswith("assets/logo.png")
  
          # Make sure the cell is still selected iff cell_selectable, after switching tabs
          test.driver.switch_to.window(test.driver.window_handles[0])
          assert target.cell(0, "a").is_selected() == cell_selectable
  
      else:
          assert len(test.driver.window_handles) == 1
          assert test.driver.current_url.endswith("assets/logo.png")
  
      assert test.get_log_errors() == []
  
imports: import pytest
  import dash
  from dash.dash_table import DataTable
label_desc: Use image node_id 2 for calling a global function with example usage: test_tmdl001_click_markdown_link(test, markdown_options, new_tab, cell_selectable) without return types