code: def get_error_html(dash_duo, index):
      # error is in an iframe so is annoying to read out - get it from the store
      return dash_duo.driver.execute_script(
          "return store.getState().error.backEnd[{}].error.html;".format(
              index
          )
      )
  
file_path: dash/tests/integration/devtools/test_devtools_error_handling.py
imports: from dash import Dash, Input, Output, html, dcc
  from dash.exceptions import PreventUpdate
label_desc: Use image node_id 2 for calling a global function with example usage: get_error_html(dash_duo, index) and returns: dash_duo