def METHOD_NAME(self, preds: Tensor, target: Tensor, message: str, metric_args: dict):
    """Test that specific errors are raised for incorrect input."""
    self.run_functional_metric_arguments_test(
        preds=preds,
        target=target,
        metric_functional=retrieval_hit_rate,
        message=message,
        exception_type=ValueError,
        kwargs_update=metric_args,
    )