code: def __init__(self, metric_fns):
      self.metric_fns = metric_fns
      self.result_dict = defaultdict(float)
      self.num_samples = 0
  
file_path: medicaltorch/medicaltorch/metrics.py
imports: from collections import defaultdict
  from scipy import spatial
  import numpy
label_desc: Use image node_id 1 to create a new MetricManager object from inherited base classes: object with example: obj = MetricManager(metric_fns)