code: def groups(self):
          
          groups = defaultdict(list)
          for setting in self.all():
              groups[setting.group].append(setting)
          return dict(groups)
docs: Returns a dict of lists for all :class:`~plexapi.settings.Setting`
              objects grouped by setting group.