code: def hasWindowPlotly(dash_duo):
      return dash_duo.driver.execute_script("return !!window.Plotly")
  
file_path: dash/tests/integration/test_scripts.py
imports: import time
  import pytest
  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: hasWindowPlotly(dash_duo) and returns: dash_duo