code: def batch_filter_seq2seq_output(prediction, eos_id=-1):
      """Calling batch_size times of filter_seq2seq_output.
      Arguments
      ---------
      prediction : list of torch.Tensor
          A list containing the output ints predicted by the seq2seq system.
      eos_id : int, string
          The id of the eos.
      Returns
      ------
      list
          The output predicted by seq2seq model.
      Example
      -------
      >>> predictions = [torch.IntTensor([1,2,3,4]), torch.IntTensor([2,3,4,5,6])]
      >>> predictions = batch_filter_seq2seq_output(predictions, eos_id=4)
      >>> predictions
      [[1, 2, 3], [2, 3]]
      """
      outputs = []
      for p in prediction:
          res = filter_seq2seq_output(p.tolist(), eos_id=eos_id)
          outputs.append(res)
      return outputs
  
imports: import torch
label_desc: Use image node_id 4 for calling a global function with example usage: batch_filter_seq2seq_output(prediction, eos_id) and returns: outputs