code: def plot_config_to_html(
      plot_config: AxPlotConfig,
      plot_module_name: str = PLOT_MODULE_NAME,
      plot_resources: Dict[enum.Enum, str] = Ax_PLOT_REGISTRY,
      inject_helpers: bool = False,
  ) -> str:
      """Generate HTML + JS corresponding from a plot config."""
      plotdivid = uuid.uuid4().hex
      plot_js = _get_plot_js(
          plot_config, plot_module_name, plot_resources, plotdivid
      )
      if inject_helpers:
          helper_fxns = _load_js_resource(
              _AxPlotJSResources.HELPER_FXNS
          )
          plot_js = helper_fxns + plot_js
      return _plot_js_to_html(plot_js, plotdivid)
  
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 7 for calling a global function with example usage: plot_config_to_html(plot_config, plot_module_name, plot_resources, inject_helpers) and returns: _plot_js_to_html