code: def _read_quartus_file(filename):
      """
      Reads results (clock frequency, resource usage) obtained through FPGA synthesis (full Quartus compilation)
  
      Args:
          filename (string): Location of Quartus report
  
      Returns:
          results (dict): Resource usage obtained through Quartus Compile
      """
  
      with open(filename) as dataFile:
          quartus_data = dataFile.read()
          quartus_data = read_js_object(quartus_data)
  
      results = {}
      if (
          quartus_data["quartusJSON"]["quartusFitClockSummary"][
              "nodes"
          ][0]["clock"]
          != "TBD"
      ):
          results["Clock"] = quartus_data["quartusJSON"][
              "quartusFitClockSummary"
          ]["nodes"][0]["clock"]
          results["Quartus ALM"] = quartus_data["quartusJSON"][
              "quartusFitResourceUsageSummary"
          ]["nodes"][-1]["alm"]
          results["Quartus REG"] = quartus_data["quartusJSON"][
              "quartusFitResourceUsageSummary"
          ]["nodes"][-1]["reg"]
          results["Quartus DSP"] = quartus_data["quartusJSON"][
              "quartusFitResourceUsageSummary"
          ]["nodes"][-1]["dsp"]
          results["Quartus RAM"] = quartus_data["quartusJSON"][
              "quartusFitResourceUsageSummary"
          ]["nodes"][-1]["ram"]
          results["Quartus MLAB"] = quartus_data["quartusJSON"][
              "quartusFitResourceUsageSummary"
          ]["nodes"][-1]["mlab"]
      else:
          print(
              "Quartus report not found. "
              "Run Quartus Compilation using Quartus Shell or Full Compilation from Intel Quartus Prime"
          )
      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 5 for calling a global function with example usage: _read_quartus_file(filename) and returns: results