class_docstr: Utility class to generate an HTML report.
docstr: Reads the HTML template content.
  
  Args:
    html_template_path: A string, path to the template HTML file.
    export_report_path: A string, path to the generated HTML report. This path
      should point to a '.html' file with date and time in its name.
      e.g. 2019-01-01-10:05.toco_report.html.
  
  Raises:
    IOError: File doesn't exist.
code: def __init__(self, html_template_path, export_report_path):
      """Reads the HTML template content.
  
      Args:
        html_template_path: A string, path to the template HTML file.
        export_report_path: A string, path to the generated HTML report. This path
          should point to a '.html' file with date and time in its name.
          e.g. 2019-01-01-10:05.toco_report.html.
  
      Raises:
        IOError: File doesn't exist.
      """
      # Load the template HTML.
      if not _file_io.file_exists(html_template_path):
          raise IOError(
              "File '{0}' does not exist.".format(html_template_path)
          )
      with _file_io.FileIO(html_template_path, "r") as f:
          self.html_template = f.read()
  
      _file_io.recursive_create_dir(os.path.dirname(export_report_path))
      self.export_report_path = export_report_path
  
file_path: tensorflow-upstream/tensorflow/lite/toco/logging/gen_html.py
imports: import io
  import os
  from tensorflow.lite.toco.logging import toco_conversion_log_pb2
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.platform import resource_loader
label_desc: Use image node_id 1 to create a new HTMLGenerator object  with example: obj = HTMLGenerator(html_template_path, export_report_path)