def METHOD_NAME(self, preds: Tensor, target: Tensor, k: int, adaptive_k: bool):
    """Test functional implementation of metric."""
    self.run_functional_metric_test(
        preds=preds,
        target=target,
        metric_functional=retrieval_precision,
        reference_metric=_precision_at_k,
        metric_args={},
        top_k=k,
        adaptive_k=adaptive_k,
    )