def get_world_size():
    """Returns the world size of the current operation.

    Returns:
        the world size
    """
    if not dist.is_available():
        return 1

    if not dist.is_initialized():
        return 1

    return dist.get_world_size()
Returns the world size of the current operation.

    Returns:
        the world size
    
fiftyone/utils/torch.py