class_docstr: Trainer for ensemble models
  
  Attributes:
      real_trainer (Trainer): the actual trainer to run
code: def from_config(
      cls, config: Config, model: torch.nn.Module, *args, **kwargs
  ):
      trainers = [
          create_trainer(config.real_trainer, m, *args, **kwargs)
          for m in model.models
      ]
  
      return cls(trainers)
  
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 1 for calling the EnsembleTrainer obj's underlying member method code with example usage: obj.from_config(cls, config, model) and returns: cls