code: def _plot_js_to_html(js_script: str, plotdivid: str) -> str:
      """Embed JS script for Plotly plot in HTML.
  
      Result is a <div> block with a unique id set in `plotdivid` and a
      <script> block that contains the JS needed to render the plot inside the
      div.
  
      Args:
          js_script: JS for rendering plot.
          plotdivid: unique string ID for div.
  
      """
      plot_div = (
          '<div id="{id}" style="width: {width};" class="plotly-graph-div">'
          "</div>"
      ).format(id=plotdivid, width=DEFAULT_WIDTH)
      plot_js = Template(
          _load_js_resource(_AxPlotJSResources.PLOTLY_REQUIRES)
      ).render(script=js_script)
      return plot_div + _wrap_js(plot_js)
  
file_path: Ax/ax/plot/render.py
imports: import enum
  import json
  import os
  import pkgutil
  import uuid
  from typing import Dict
  import plotly.offline
  from ax.plot.base import AxPlotConfig, AxPlotTypes
  from jinja2 import Template
label_desc: Use image node_id 6 for calling a global function with example usage: _plot_js_to_html(js_script, plotdivid) and returns: unknown