def getgroup(self, name, description="<STR_LIT>", after=None):
for group in self._groups:<EOL><INDENT>if group.name == name:<EOL><INDENT>return group<EOL><DEDENT><DEDENT>group = OptionGroup(name, description, parser=self)<EOL>i = <NUM_LIT:0><EOL>for i, grp in enumerate(self._groups):<EOL><INDENT>if grp.name == after:<EOL><INDENT>break<EOL><DEDENT><DEDENT>self._groups.insert(i + <NUM_LIT:1>, group)<EOL>return group<EOL>
get (or create) a named option Group.

        :name: name of the option group.
        :description: long description for --help output.
        :after: name of other group, used for ordering --help output.

        The returned group object has an ``addoption`` method with the same
        signature as :py:func:`parser.addoption
        <_pytest.config.Parser.addoption>` but will be shown in the
        respective group in the output of ``pytest. --help``.