code: def all_reduce(
      inputs, outputs=None, op=SUM, streams=None, comms=None
  ):
      _check_sequence_type(inputs)
      if outputs is None:
          outputs = inputs
      _check_sequence_type(outputs)
      torch._C._nccl_all_reduce(inputs, outputs, op, streams, comms)
  
file_path: pytorch/torch/cuda/nccl.py
imports: import collections
  import warnings
  from typing import Optional, Sequence, Union
  import torch.cuda
label_desc: Use image node_id 6 for calling a global function with example usage: all_reduce(inputs, outputs, op, streams, comms) without return types