code: def test_compute_mean(self):
      scores = [[1.0, 3.0, 2.0], [1.0, 2.0, 3.0]]
      labels = [[0.0, 0.0, 1.0], [0.0, 1.0, 2.0]]
      weights = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]
      for key in [
          "mrr",
          "arp",
          "ndcg",
          "dcg",
          "precision",
          "map",
          "ordered_pair_accuracy",
      ]:
          value = metrics_lib.compute_mean(
              key, labels, scores, weights, 2, name=key
          )
          self.assertGreater(value, 0.0)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import math
  import tensorflow
  from tensorflow_ranking.python import metrics
label_desc: Use image node_id 17 for calling the MetricsTest obj's underlying member method code with example usage: obj.test_compute_mean() without return types