class_docstr: emotion postprocess
class_docstr_tok: ["emotion","postprocess"]
docstr: compute metrics
docstr_tok: ["compute","metrics"]
code: def log_metrics(self, stats):
      """compute metrics"""
      socres = utils.metrics.get_metrics(
          self.config, y_true=stats[0], y_pred=stats[1]
      )
      with open(
          self.pred_metrics_path, "w"
      ) as f:  # pylint: disable=invalid-name
          for key, val in socres.items():
              logging.info("{}: {}".format(key, val))
              f.write("{}: {}\n".format(key, val))
  
file_path: delta/delta/utils/postprocess/speech_cls_proc.py
imports: import os
  import pickle
  import collections
  import numpy
  from absl import logging
  from sklearn.metrics import confusion_matrix
  from delta import utils
  from delta.utils.postprocess.base_postproc import PostProc
  from delta.utils.register import registers
label_desc: Use image node_id 4 for calling the EmoPostProc obj's underlying member method code with example usage: obj.log_metrics(stats) without return types