class_docstr: Interface for collective operations.
  
  Supports communications between multiple processes and multiple nodes. A collective owns a group.
  
  .. warning:: This is an :ref:`experimental <versioning:Experimental API>` feature which is still in development.
docstr: Create a group.
  
  This assumes that :meth:`~lightning.fabric.plugins.collectives.Collective.init_group` has been
  called already by the user.
docstr_tok: ["Create","a","group",".","This","assumes","that",":","meth",":","`","~lightning.fabric.plugins.collectives.Collective.init_group","`","has","been","called","already","by","the","user","."]
code: def create_group(self, **kwargs: Any) -> Self:
      """Create a group.
  
      This assumes that :meth:`~lightning.fabric.plugins.collectives.Collective.init_group` has been
      called already by the user.
  
      """
      if self._group is not None:
          raise RuntimeError(
              f"`{type(self).__name__}` already owns a group."
          )
      self._group = self.new_group(**kwargs)
      return self
  
imports: from abc import ABC, abstractmethod
  from typing import Any, List, Optional
  from torch import Tensor
  from typing_extensions import Self
  from lightning.fabric.utilities.types import CollectibleGroup
label_desc: Use image node_id 23 for calling the Collective obj's underlying member method code with example usage: obj.create_group() and returns: self