code: def all_prod(tensors):
      """Returns a list of tensors with the all-reduce product across `tensors`.
  
      The computation is done with an all-reduce operation, so if only some of the
      returned tensors are evaluated then the computation will hang.
  
      Args:
        tensors: The input tensors across which to multiply; must be assigned
          to GPU devices.
  
      Returns:
        List of tensors, each with the product of the input tensors, where tensor i
        has the same device as `tensors[i]`.
      """
      return _apply_all_reduce("prod", tensors)
  
file_path: tensorflow/tensorflow/python/ops/nccl_ops.py
imports: import threading
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import device
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import gen_nccl_ops
label_desc: Use image node_id 3 for calling a global function with example usage: all_prod(tensors) and returns: _apply_all_reduce