def METHOD_NAME(self, output: Tuple[torch.Tensor, torch.Tensor]) -> None:
    y_pred, y = output
    if len(self._predictions) < 1:
        return
    dtype_preds = self._predictions[-1].dtype
    if dtype_preds != y_pred.dtype:
        raise ValueError(
            f"Incoherent types between input y_pred and stored predictions: {dtype_preds} vs {y_pred.dtype}"
        )
    dtype_targets = self._targets[-1].dtype
    if dtype_targets != y.dtype:
        raise ValueError(f"Incoherent types between input y and stored targets: {dtype_targets} vs {y.dtype}")