code: def _make_html(payload):
      div_id = _id_generator()
      template_path = pkg_resources.resource_filename(
          __name__, "template.html"
      )
      pareto_js_path = pkg_resources.resource_filename(
          __name__, "js/dist/fairAutoML.js"
      )
  
      with open(pareto_js_path, "r") as file:
          pareto_js_bundle = file.read()
  
      with open(template_path, "r") as file:
          html_template = file.read()
          html_template = Template(html_template)
  
      return html_template.substitute(
          div_id=div_id,
          library_bundle=pareto_js_bundle,
          payload=json.dumps(payload, cls=_CustomJSONEncoder),
      )
  
file_path: aequitas/src/aequitas/fairflow/plots/pareto/visualize.py
imports: import json
  from datetime import datetime
  from string import Template
  from uuid import uuid4
  import numpy
  import pkg_resources
  from .plot import Plot
label_desc: Use image node_id 3 for calling a global function with example usage: _make_html(payload) and returns: html_template