class_docstr: Task object for TF-Ranking.
class_docstr_tok: ["Task","object","for","TF-Ranking","."]
code: def build_metrics(self, training=None):
      del training
      metrics = [tfr_metrics.MeanAveragePrecisionMetric(name="MAP")]
      for topn in [1, 5, 10]:
          metrics.append(
              tfr_metrics.NDCGMetric(
                  name="NDCG@{}".format(topn), topn=topn
              )
          )
      for topn in [1, 5, 10]:
          metrics.append(
              tfr_metrics.MRRMetric(
                  name="MRR@{}".format(topn), topn=topn
              )
          )
      return metrics
  
imports: import dataclasses
  from typing import Callable, Dict, Mapping, Optional, Tuple, Union
  import tensorflow
  from tensorflow_ranking.python import data
  from tensorflow_ranking.python.keras import losses
  from tensorflow_ranking.python.keras import metrics
  from tensorflow_ranking.python.keras import model
label_desc: Use image node_id 5 for calling the RankingTask obj's underlying member method code with example usage: obj.build_metrics(training) and returns: metrics