code: def __init__(
      self,
      real_trainer_config,
      num_workers,
      model: torch.nn.Module,
      *args,
      **kwargs,
  ):
      super().__init__(real_trainer_config, model, *args, **kwargs)
      self.num_workers = num_workers
  
file_path: pytext/pytext/trainers/hogwild_trainer.py
imports: import copy
  import torch
  import torch.multiprocessing
  from pytext.common.constants import Stage
  from pytext.config.pytext_config import ConfigBase
  from pytext.legacy.data import Iterator
  from pytext.metric_reporters import MetricReporter
  from pytext.trainers.trainer import TaskTrainer, Trainer, TrainingState
  from pytext.utils import cuda
label_desc: Use image node_id 2 to create a new HogwildTrainer_Deprecated object from inherited base classes: Trainer with example: obj = HogwildTrainer_Deprecated(real_trainer_config, num_workers, model)