code: def __init__(self, ignore_index: int = -1):
      super().__init__()
      self.ignore_index = ignore_index
  
imports: import dataclasses
  import torch
  from labml import tracker
  from .None import Metric
label_desc: Use image node_id 1 to create a new Accuracy object from inherited base classes: Metric with example: obj = Accuracy(ignore_index)