code: def generate_html(keywords, tmpl_path, package_name='ecell4.util'):
      
      from jinja2 import Template
  
      import pkgutil
      template = Template(pkgutil.get_data(package_name, tmpl_path).decode())
      # path = os.path.abspath(os.path.dirname(__file__)) + tmpl_path
      # template = Template(open(path).read())
      html = template.render(**keywords)
      return html
docs: Generate static html file from JSON model and its own id.
  
      Parameters
      ----------
      model : dict
          JSON model from which ecell4.viz generates a plot.
      model_id : string
          Unique id for the plot.
  
      Returns
      -------
      html :
          A HTML object