class_docstr: python metrix unittest 
class_docstr_tok: ["python","metrix","unittest"]
docstr: test get_metrics function 
docstr_tok: ["test","get_metrics","function"]
code: def test_metric(self):
      """test get_metrics function"""
      config = utils.load_config(self.conf_file)
  
      metrics1 = metrics.get_metrics(
          config, y_true=self.true_label, y_pred=self.pred1
      )
      self.assertEqual(1.0, metrics1["AccuracyCal"])
      self.assertEqual(1.0, metrics1["PrecisionCal"])
      self.assertEqual(1.0, metrics1["RecallCal"])
      self.assertEqual(1.0, metrics1["F1ScoreCal"])
  
      metrics2 = metrics.get_metrics(
          config, y_true=self.true_label, y_pred=self.pred2
      )
      self.assertEqual(0.0, metrics2["AccuracyCal"])
      self.assertEqual(0.0, metrics2["PrecisionCal"])
      self.assertEqual(0.0, metrics2["RecallCal"])
      self.assertEqual(0.0, metrics2["F1ScoreCal"])
  
file_path: delta/delta/utils/metrics/py_metrics_test.py
imports: import os
  from pathlib import Path
  import tempfile
  import numpy
  import delta.compat
  from delta import utils
  from delta.utils import metrics
  from delta import PACKAGE_ROOT_DIR
label_desc: Use image node_id 3 for calling the MetricTest obj's underlying member method code with example usage: obj.test_metric() without return types