code: def group(name=None, **attrs):
      """Creates a new :class:`Group` with a function as callback.  This
      works otherwise the same as :func:`command` just that the `cls`
      parameter is set to :class:`Group`.
      """
      attrs.setdefault("cls", Group)
      return command(name, **attrs)
  
imports: import inspect
  import sys
  from functools import update_wrapper
  from ._compat import iteritems
  from ._unicodefun import _check_for_unicode_literals
  from .core import Argument
  from .core import Command
  from .core import Group
  from .core import Option
  from .globals import get_current_context
  from .utils import echo
label_desc: Use image node_id 6 for calling a global function with example usage: group(name) and returns: command