code: def jupyterlab_plotly_script(connected: bool = True) -> str:
      """Return jupyterlab-plotly javascript library.
  
      Parameters
      ----------
      connected : bool, default True
          whether to use CDN or not
  
      Returns
      -------
      str
      """
      if connected is True:
          url = (
              "https://unpkg.com/jupyterlab-plotly@^5.5.0/dist/index.js"
          )
          return f'<script type="text/javascript" src="{url}" async></script>'
      else:
          path = os.path.join(
              "core", "resources", "jupyterlab-plotly.js"
          )
          js = pkgutil.get_data("deepchecks", path)
  
          if js is None:
              raise RuntimeError(
                  "Did not find jupyterlab-plotly javascript assets"
              )
  
          js = js.decode("utf-8")
          return f'<script type="text/javascript">{js}</script>'
  
file_path: deepchecks/deepchecks/core/resources/__init__.py
imports: import os
  import pkgutil
  import textwrap
  from ipywidgets.embed import __html_manager_version__
label_desc: Use image node_id 3 for calling a global function with example usage: jupyterlab_plotly_script(connected) and returns: str, url, str, str, js, str