<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def groups(self) -> Set[str]: """The set of option-groups created by ``define``. .. versionadded:: 3.1 """

        return set(opt.group_name for opt in self._options.values())