code: def test_averagepopularity(self):
      name = "averagepopularity"
      Metric = metrics_dict[name](config)
      self.assertEqual(
          Metric.metric_info(
              Metric.get_pop(item_matrix, item_count)
          ).tolist(),
          np.array(
              [
                  [4 / 1, 4 / 2, 6 / 3],
                  [3 / 1, 7 / 2, 8 / 3],
                  [1 / 1, 3 / 2, 7 / 3],
                  [0 / 1, 3 / 2, 8 / 3],
                  [4 / 1, 6 / 2, 6 / 3],
              ]
          ).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 8 for calling the TestTopKMetrics obj's underlying member method code with example usage: obj.test_averagepopularity() without return types