class_docstr: Manages a TensorFlow model for training.
code: def setup_horovod(self):
      import horovod.tensorflow.keras as hvd
  
      hvd.init()
  
      if self.model_creator is not None:
          self.model = self.model_creator(self.config)
          compile_args = self.compile_args_creator(self.config)
          compile_args["optimizer"] = hvd.DistributedOptimizer(
              compile_args["optimizer"]
          )
          self.model.compile(**compile_args)
  
      self.backend = "horovod"
      self.size = hvd.size()
      self.rank = hvd.rank()
      from tensorflow.python.distribute import (
          distribution_strategy_context as ds_context,
      )
  
      self.strategy = ds_context.get_strategy()
  
imports: import json
  import os
  import socket
  import shutil
  import tempfile
  import copy
  import ray
  from contextlib import closing
  from bigdl.dllib.utils import log4Error
  from bigdl.orca.data.utils import partitions_get_data_label, partitions_get_tf_dataset
  from bigdl.orca.data.file import is_file, get_remote_file_to_local, get_remote_dir_to_local, get_remote_files_with_prefix_to_local, put_local_file_to_remote, put_local_dir_tree_to_remote, put_local_files_with_prefix_to_remote
  from bigdl.orca.learn.utils import process_tensorboard_in_callbacks
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 4 for calling the TFRunner obj's underlying member method code with example usage: obj.setup_horovod() without return types