code: def get_app(props=dict(), data_fn=generate_mock_data):
      app = dash.Dash(__name__)
  
      baseProps = get_props(data_fn=data_fn)
  
      for c in baseProps.get("columns"):
          c.update(
              dict(on_change=dict(action="coerce", failure="reject"))
          )
  
      baseProps.update(props)
  
      app.layout = DataTable(**baseProps)
  
      return app
  
file_path: dash/components/dash-table/tests/selenium/test_typed.py
imports: import dash
  from utils import get_props, generate_mock_data, generate_mock_data_with_date
  from dash.dash_table import DataTable
  from selenium.webdriver.common.keys import Keys
label_desc: Use image node_id 1 for calling a global function with example usage: get_app(props, data_fn) and returns: app