code: def get_results(self):
      res_dict = {}
      for key, val in self.result_dict.items():
          res_dict[key] = val / self.num_samples
      return res_dict
  
file_path: medicaltorch/medicaltorch/metrics.py
imports: from collections import defaultdict
  from scipy import spatial
  import numpy
label_desc: Use image node_id 3 for calling the MetricManager obj's underlying member method code with example usage: obj.get_results() and returns: res_dict