code: def group(doc: Doc) -> Doc:
      """Layout alternative groups.
  
      Prints the group with its breaks as their text (typically spaces) if the
      entire group would fit on the line when printed that way. Otherwise, breaks
      inside the group as printed as newlines.
      """
      return _GroupDoc(doc)
  
imports: from __future__ import annotations
  import abc
  from collections.abc import Sequence
  import enum
  from functools import partial
  import sys
  from typing import NamedTuple
  from jax._src import config
label_desc: Use image node_id 11 for calling a global function with example usage: group(doc) and returns: _GroupDoc