code: def get_data_frame(self, processed_metrics):
      df = pd.DataFrame(
          columns=["name", "min", "max", "mean", "variance", "stdev"]
      )
      for metric_name in sorted(processed_metrics.keys()):
          values = processed_metrics[metric_name]
          row = {
              "name": metric_name,
              "min": min(values),
              "max": max(values),
              "mean": statistics.mean(values),
              "variance": statistics.variance(values),
              "stdev": statistics.stdev(values),
          }
          df = df.append(row, ignore_index=True)
      return df
  
file_path: pytorch/benchmarks/distributed/rpc/parameter_server/metrics/ProcessedMetricsPrinter.py
imports: import statistics
  import pandas
  from tabulate import tabulate
label_desc: Use image node_id 3 for calling the ProcessedMetricsPrinter obj's underlying member method code with example usage: obj.get_data_frame(processed_metrics) and returns: df