def METHOD_NAME(self) -> Tensor:
    """Compute r2 score over the metric states."""
    return _r2_score_compute(
        self.sum_squared_error, self.sum_error, self.residual, self.total, self.adjusted, self.multioutput
    )