class_docstr: Wrap torchmetrics.Accuracy to take argmax of y in case of Mixup.
      
class_docstr_tok: ["Wrap","torchmetrics.Accuracy","to","take","argmax","of","y","in","case","of","Mixup","."]
code: def update(self, preds: Tensor, target: Tensor) -> None:  # type: ignore
      super().update(
          preds,
          target.argmax(dim=-1)
          if target.is_floating_point()
          else target,
      )
  
imports: import torch
  from torch import Tensor
  from torchmetrics import Metric, Accuracy
label_desc: Use image node_id 1 for calling the AccuracyMine obj's underlying member method code with example usage: obj.update(preds, target) without return types