code: def _setGroupNames(classes, classRename):
      
      groups = {}
      for groupName, glyphList in classes.items():
          groupName = classRename.get(groupName, groupName)
          # if the glyph list has only one member,
          # the glyph name will be used in the pairs.
          # no group is needed.
          if len(glyphList) == 1:
              continue
          groups[groupName] = glyphList
      return groups
docs: Set the final names into the groups.