class_docstr: Trainer for ensemble models
  
  Attributes:
      real_trainer (Trainer): the actual trainer to run
code: def __init__(self, real_trainers):
      self.real_trainers = real_trainers
      self.optimizer = real_trainers[0].optimizer
      self.test = real_trainers[0].test
      self.train_single_model = real_trainers[0].train
  
file_path: pytext/pytext/trainers/ensemble_trainer.py
imports: import torch
  from pytext.config import ConfigBase
  from pytext.config.component import create_trainer
  from .trainer import TaskTrainer, TrainerBase
label_desc: Use image node_id 2 to create a new EnsembleTrainer object from inherited base classes: TrainerBase with example: obj = EnsembleTrainer(real_trainers)