def METHOD_NAME(self, preds: Tensor, target: Tensor) -> None:
    """Update state with predictions and targets."""
    preds, target = _sam_update(preds, target)
    self.preds.append(preds)
    self.target.append(target)