class_docstr: Dummy Generator that delegates to individual real Generators,
  and then averages the resulting target distributions.
code: def __init__(self, model_generators, raw_probs=False):
      super(EnsembleGenerator, self).__init__()
      self.model_generators = nn.ModuleList(model_generators)
      self._raw_probs = raw_probs
  
imports: import torch
  import torch.nn
  from onmt.encoders.encoder import EncoderBase
  from onmt.decoders.decoder import DecoderBase
  from onmt.models import NMTModel
  import onmt.model_builder
label_desc: Use image node_id 1 to create a new EnsembleGenerator object from inherited base classes: nn with example: obj = EnsembleGenerator(model_generators, raw_probs)