code: def save_metrics(self, save_path=".", file_name="metrics.txt"):
      if not os.path.exists(save_path):
          os.makedirs(save_path)
  
      metrics_path = os.path.join(save_path, file_name)
      metrics_file = open(metrics_path, "w+")
      metrics_file.write(self.summary_text)
      metrics_file.close()
  
imports: import os
  import numpy
  from rich import print
  from rich.progress import track
  from norfair import Detection
  from collections import OrderedDict
label_desc: Use image node_id 5 for calling the Accumulators obj's underlying member method code with example usage: obj.save_metrics(save_path, file_name) without return types