code: def parse_group(cls, group, lines, dist=None):
          
          if not MODULE(group):
              raise ValueError("Invalid group name", group)
          this = {}
          for line in yield_lines(lines):
              ep = cls.parse(line, dist)
              if ep.name in this:
                  raise ValueError("Duplicate entry point", group, ep.name)
              this[ep.name] = ep
          return this
docs: Parse an entry point group