def METHOD_NAME(
    self,
    ddp: bool,
    indexes: Tensor,
    preds: Tensor,
    target: Tensor,
    empty_target_action: str,
    ignore_index: int,
    top_k: int,
):
    """Test class implementation of metric."""
    metric_args = {"empty_target_action": empty_target_action, "ignore_index": ignore_index, "top_k": top_k}
    self.run_class_metric_test(
        ddp=ddp,
        indexes=indexes,
        preds=preds,
        target=target,
        metric_class=RetrievalMAP,
        reference_metric=_average_precision_at_k,
        metric_args=metric_args,
    )