code: def _read_hls_file(filename):
      """
      Reads HLS resource estimate obtained through HLS synthesis
  
      Args:
          filename (string):  Location of HLS report
  
      Returns:
          results (dict): Resource usage obtained through HLS Estimation
      """
      with open(filename) as dataFile:
          report_data = dataFile.read()
          report_data = report_data[: report_data.rfind("var fileJSON")]
          report_data = read_js_object(report_data)
          results = {}
          (
              results["HLS Estimate ALUT"],
              results["HLS Estimate FF"],
              results["HLS Estimate RAM"],
              results["HLS Estimate DSP"],
              results["HLS Estimate MLAB"],
          ) = report_data["areaJSON"]["total"]
          (
              results["HLS Estimate ALUT (%)"],
              results["HLS Estimate FF(%)"],
              results["HLS Estimate RAM (%)"],
              results["HLS Estimate DSP (%)"],
              results["HLS Estimate MLAB (%)"],
          ) = report_data["areaJSON"]["total_percent"]
          return results
  
file_path: hls4ml/hls4ml/report/quartus_report.py
imports: import os
  import webbrowser
  from ast import literal_eval
  from calmjs.parse import asttypes, es5
  from tabulate import tabulate
label_desc: Use image node_id 6 for calling a global function with example usage: _read_hls_file(filename) and returns: results