code: def test_hit(self):
      name = "hit"
      Metric = metrics_dict[name](config)
      self.assertEqual(
          Metric.metric_info(pos_idx).tolist(),
          np.array(
              [[0, 0, 0], [1, 1, 1], [1, 1, 1], [0, 0, 1]]
          ).tolist(),
      )
  
file_path: RecBole/tests/metrics/test_topk_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 the TestTopKMetrics obj's underlying member method code with example usage: obj.test_hit() without return types