code: def append_measures(self, predictions, labels):
      predicted_classes = predictions.argmax(dim=1)
      for cl in range(self.num_classes):
          cl_indices = labels == cl
          pos = predicted_classes == cl
          hits = predicted_classes[cl_indices] == labels[cl_indices]
  
          tp = hits.sum()
          fn = hits.size(0) - tp
          fp = pos.sum() - tp
  
          self.true_positives[cl].append(tp.cpu())
          self.false_negatives[cl].append(fn.cpu())
          self.false_positives[cl].append(fp.cpu())
  
file_path: dgl/examples/pytorch/evolveGCN/utils.py
label_desc: Use image node_id 3 for calling the Measure obj's underlying member method code with example usage: obj.append_measures(predictions, labels) without return types