code: def test_empt001_clear_(test):
      test.start_server(get_app())
  
      target = test.table("table")
  
      assert target.is_ready()
      assert len(test.find_elements("tr")) == 3
      test.find_element("#clear-table").click()
      assert target.is_ready()
      assert len(test.find_elements("tr")) == 0
      assert test.get_log_errors() == []
  
imports: import dash
  from dash.dependencies import Input, Output
  from dash.exceptions import PreventUpdate
  from dash.dash_table import DataTable
  from dash.html import Button, Div
label_desc: Use image node_id 2 for calling a global function with example usage: test_empt001_clear_(test) without return types