code: def generate(self, models, sample, **unused):
      ids = sample["id"].cpu().numpy()
      try:
          emissions = np.stack(self.emissions[ids])
      except:
          print([x.shape for x in self.emissions[ids]])
          raise Exception("invalid sizes")
      emissions = torch.from_numpy(emissions)
      return self.decoder.decode(emissions)
  
imports: import ast
  import logging
  import math
  import os
  import sys
  import editdistance
  import numpy
  import torch
  from fairseq import checkpoint_utils, options, progress_bar, tasks, utils
  from fairseq.data.data_utils import post_process
  from fairseq.logging.meters import StopwatchMeter, TimeMeter
label_desc: Use image node_id 2 for calling the ExistingEmissionsDecoder obj's underlying member method code with example usage: obj.generate(models, sample) and returns: self