code: def test_grva010_external_mathjax_prevents_lazy(dash_dcc):
      # specific MathJax version that's older than the built-in version
      v = "3.1.4"
      app = Dash(
          __name__,
          eager_loading=False,
          external_scripts=[
              f"https://cdn.jsdelivr.net/npm/mathjax@{v}/es5/tex-svg.js"
          ],
      )
  
      app.layout = html.Div(id="div", children=[html.Button(id="btn")])
  
      @app.callback(
          Output("div", "children"), [Input("btn", "n_clicks")]
      )
      def load_chart(n_clicks):
          if n_clicks is None:
              raise PreventUpdate
  
          return dcc.Graph(
              mathjax=True,
              id="output",
              figure={
                  "data": [{"y": [3, 1, 2]}],
                  "layout": {"title": {"text": "$E=mc^2$"}},
              },
          )
  
      dash_dcc.start_server(
          app,
          debug=True,
          use_reloader=False,
          use_debugger=True,
          dev_tools_hot_reload=False,
      )
  
      # Give time for the async dependency to be requested (if any)
      dash_dcc.wait_for_element("button#btn")
  
      # even in eager mode (when the async bundle is preloaded) we keep the
      # external version, which seems to be a pleasant effect of how
      # webpack bundles these chunks!
      assert (
          dash_dcc.driver.execute_script("return MathJax.version") == v
      )
  
      dash_dcc.find_element("#btn").click()
      dash_dcc.wait_for_element(".gtitle-math")
  
      # We still have the external version, not the built-in one
      assert (
          dash_dcc.driver.execute_script("return MathJax.version") == v
      )
  
      assert dash_dcc.get_logs() == []
  
imports: import pytest
  import time
  import json
  import werkzeug
  from selenium.webdriver import ActionChains
  from dash import Dash, Input, Output, State, dcc, html
  from dash.exceptions import PreventUpdate
  from dash.testing.wait import until
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.support import expected_conditions
label_desc: Use image node_id 12 for calling a global function with example usage: test_grva010_external_mathjax_prevents_lazy(dash_dcc) and returns: dcc