code: def _str_subgroups(self):
          
          if not self.subgroups:
              return ""
          return ['subGroups %s'
                  % ' '.join(['%s=%s' % (k, v) for (k, v) in
                             self.subgroups.items()])]
docs: helper function to render subgroups as a string