Python API
is_root()
Check if the current rank is the root rank (rank 0).
group (ProcessGroup, optional) – The process group to work on. If None (default), the default process group will be used.