class_docstr: Manages a PyTorch model for training.
code: def setup_horovod(self):
      import horovod.torch as hvd
  
      hvd.init()
      self.backend = "horovod"
      self.rank = hvd.rank()
      self.size = hvd.size()
      self.setup_components_horovod()
      self.training_models = self.models
      self.setup_operator(self.training_models)
  
file_path: BigDL/python/orca/src/bigdl/orca/learn/pytorch/pytorch_ray_worker.py
imports: import ray
  import copy
  from bigdl.orca.learn.pytorch.utils import find_free_port
  from bigdl.orca.learn.pytorch.torch_runner import TorchRunner
  import torch.nn
  from torch.utils.data import IterableDataset
  import logging
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 2 for calling the PytorchRayWorker obj's underlying member method code with example usage: obj.setup_horovod() without return types