code: def broadcast(
      tensor: tf.Tensor, root_rank: int, name: str = None
  ) -> tf.Tensor:
      """An op which broadcasts the input tensor on root rank to the same input tensor
      on all other Bluefog processes.
  
      The broadcast operation is keyed by the name of the op. The tensor type and
      shape must be the same on all Bluefog processes for a given name. The broadcast
      will not start until all processes are ready to send and receive the tensor.
  
      Arguments:
          tensor: A tensor to broadcast.
          root_rank: The rank to broadcast the value from.
          name: A name of the broadcast operation.
  
      Returns:
        A tensor of the same shape and type as `tensor`, with the value broadcasted
        from root rank.
      """
      if name is None and not _executing_eagerly():
          name = "BluefogBroadcast_%s" % _normalize_name(tensor.name)
      return MPI_LIB.bluefog_broadcast(
          tensor, name=name, root_rank=root_rank
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  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 bluefog.common.basics import BlueFogBasics
  from bluefog.common.util import get_ext_suffix
  from bluefog.tensorflow.util import _executing_eagerly
label_desc: Use image node_id 7 for calling a global function with example usage: broadcast(tensor, root_rank, name) and returns: MPI_LIB