code: def requirejs_script(connected: bool = True):
      """Return requirejs script.
  
      Parameters
      ----------
      connected : bool, default True
          whether to use CDN or not
  
      Returns
      -------
      str
      """
      if connected is True:
          return textwrap.dedent(
              """
              <script
                  src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"
                  integrity="sha512-c3Nl8+7g4LMSTdrm621y7kf9v3SDPnhxLNhcjFJbKECVnmZHTdo+IRO05sNLTH/D3vA6u1X32ehoLC7WFVdheg=="
                  crossorigin="anonymous"
                  referrerpolicy="no-referrer">
              </script>
          """
          )
      else:
          path = os.path.join("core", "resources", "requirejs.min.js")
          js = pkgutil.get_data("deepchecks", path)
          if js is None:
              raise RuntimeError("Did not find requirejs asset.")
          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 1 for calling a global function with example usage: requirejs_script(connected) and returns: textwrap, str, js, str