code: def groups(self):
          
          groups = set()
          for item in self._items:
              groups |= item.groups
          return groups
docs: Set of groups defined in the roster.
  
          :Return: the groups
          :ReturnType: `set` of `unicode`