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