docstr: Broadcast tensors to all other processes following options.
  
  Args:
      tensors: tensors to be broadcast or received.
      broadcast_options: broadcast options.
  
  Returns:
      None
docstr_tok: ["Broadcast","tensors","to","all","other","processes","following","options",".","Args",":","tensors",":","tensors","to","be","broadcast","or","received",".","broadcast_options",":","broadcast","options",".","Returns",":","None"]
code: def broadcast(self, tensors, broadcast_options=BroadcastOptions()):
      """Broadcast tensors to all other processes following options.
  
      Args:
          tensors: tensors to be broadcast or received.
          broadcast_options: broadcast options.
  
      Returns:
          None
      """
      root_rank = broadcast_options.root_rank
  
      def collective_fn(input_tensor, output_tensor, context):
          pygloo.broadcast(
              context,
              gloo_util.get_tensor_ptr(input_tensor),
              gloo_util.get_tensor_ptr(output_tensor),
              gloo_util.get_tensor_n_elements(input_tensor),
              gloo_util.get_gloo_tensor_dtype(input_tensor),
              root_rank,
          )
  
      self._collective(tensors, tensors, collective_fn)
  
imports: import datetime
  import logging
  import os
  import shutil
  import time
  import numpy
  import pygloo
  import ray
  from ray._private import ray_constants
  from ray.util.collective.collective_group import gloo_util
  from ray.util.collective.collective_group.base_collective_group import BaseGroup
  from ray.util.collective.const import get_store_name
  from ray.util.collective.types import AllGatherOptions, AllReduceOptions, Backend, BarrierOptions, BroadcastOptions, RecvOptions, ReduceOptions, ReduceScatterOptions, SendOptions
label_desc: Use image node_id 7 for calling the GLOOGroup obj's underlying member method code with example usage: obj.broadcast(tensors, broadcast_options) without return types