code: def get_result(name, case=0):
      Metric = metrics_dict[name](config)
      return Metric.metric_info(
          getattr(TestCases, f"preds_{case}"),
          getattr(TestCases, f"trues_{case}"),
      )
  
file_path: RecBole/tests/metrics/test_loss_metrics.py
imports: import os
  import sys
  import unittest
  import numpy
  from recbole.config import Config
  from recbole.evaluator.register import metrics_dict
label_desc: Use image node_id 1 for calling a global function with example usage: get_result(name, case) and returns: Metric