code: def __init__(self, metrics, class_names, labels, preds):
      self.rows = []
      for i, class_n in enumerate(class_names):
          metrics_dict = {}
          metrics_dict["num_samples"] = int(metrics[3][i])
          metrics_dict["num_correct"] = sum(
              int(label) == i and int(label) == int(preds[j])
              for j, label in enumerate(labels)
          )
          metrics_dict["precision"] = metrics[0][i]
          metrics_dict["recall"] = metrics[1][i]
          metrics_dict["f1"] = metrics[2][i]
          self.rows.append(ResultRow(class_n, metrics_dict))
  
imports: import builtins
  import json
  import os
  import unicodedata
  from typing import Any, List, Optional, Tuple
label_desc: Use image node_id 1 to create a new ResultTable object  with example: obj = ResultTable(metrics, class_names, labels, preds)