code: def _reducescatter(
      tensor,
      name=None,
      op=Sum,
      ignore_name_scope=False,
      process_set=global_process_set,
      prescale_factor=1.0,
      postscale_factor=1.0,
  ):
      """An op which reduces an input tensor over all the Horovod processes, then
      scatters the result across all the Horovod processes. The default reduction
      is a sum.
  
      The reduction operation is keyed by the name of the op. The tensor type and
      shape must be the same on all Horovod processes for a given name. The reduction
      will not start until all processes are ready to send and receive the tensor.
  
      Returns:
        A tensor of the same rank and type as `tensor`. The shape is identical to the
          input shape, except for the first dimension, which will be divided across
          the different Horovod processes.
      """
      if name is None and not _executing_eagerly():
          name = "HorovodReducescatter_%s" % _normalize_name(
              tensor.name
          )
      return MPI_LIB.horovod_reducescatter(
          tensor,
          name=name,
          reduce_op=op,
          ignore_name_scope=ignore_name_scope,
          process_set_id=process_set.process_set_id,
          prescale_factor=prescale_factor,
          postscale_factor=postscale_factor,
      )
  
imports: import re
  import tensorflow
  from tensorflow.python.framework import load_library
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import resource_loader
  from horovod.common.util import check_installed_version, get_ext_suffix, get_average_backwards_compatibility_fun, gpu_available, num_rank_is_power_2
  from horovod.common.basics import HorovodBasics
  from horovod.common.process_sets import _setup
  from horovod.common.process_sets import ProcessSet, global_process_set, add_process_set, remove_process_set, _temp_process_set_object
  from horovod.tensorflow.util import _executing_eagerly
label_desc: Use image node_id 18 for calling a global function with example usage: _reducescatter(tensor, name, op, ignore_name_scope, process_set, prescale_factor, postscale_factor) and returns: MPI_LIB