code: def test_dveh006_long_python_errors(dash_duo):
      app = app_with_errors()
  
      dash_duo.start_server(
          app,
          debug=True,
          use_reloader=False,
          use_debugger=True,
          dev_tools_hot_reload=False,
          dev_tools_prune_errors=False,
      )
  
      dash_duo.find_element("#python").click()
      dash_duo.wait_for_text_to_equal(
          dash_duo.devtools_error_count_locator, "1"
      )
      dash_duo.find_element("#python").click()
      dash_duo.wait_for_text_to_equal(
          dash_duo.devtools_error_count_locator, "2"
      )
  
      dash_duo.find_element(".test-devtools-error-toggle").click()
  
      error0 = get_error_html(dash_duo, 0)
      assert "in update_output" in error0
      assert "Special 2 clicks exception" in error0
      assert "in bad_sub" not in error0
      # dash and flask part of the traceback ARE included
      # since we set dev_tools_prune_errors=False
      assert "%% callback invoked %%" in error0
      assert "self.wsgi_app" in error0
  
      error1 = get_error_html(dash_duo, 1)
      assert "in update_output" in error1
      assert "in bad_sub" in error1
      assert "ZeroDivisionError" in error1
      assert "%% callback invoked %%" in error1
      assert "self.wsgi_app" in error1
  
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 4 for calling a global function with example usage: test_dveh006_long_python_errors(dash_duo) without return types