def METHOD_NAME(
    preds: Tensor, target: Tensor, top_k: Optional[int] = None, adaptive_k: bool = False
) -> Tensor:
    """Wrapper for deprecated import.
    >>> from torch import tensor
    >>> preds = tensor([0.2, 0.3, 0.5])
    >>> target = tensor([True, False, True])
    >>> _retrieval_precision(preds, target, top_k=2)
    tensor(0.5000)
    """
    _deprecated_root_import_func("retrieval_precision", "retrieval")
    return retrieval_precision(preds=preds, target=target, top_k=top_k, adaptive_k=adaptive_k)