code: def update(self, yhat, y):
      self.yhat.append(yhat)
      self.y.append(y)
  
file_path: fairseq/examples/emotion_conversion/emotion_models/utils.py
imports: import torch
label_desc: Use image node_id 2 for calling the Accuracy obj's underlying member method code with example usage: obj.update(yhat, y) without return types