def readGroupSetsGenerator(self, request):
        dataset = self.getDataRepository().getDataset(request.datasetId)
        if request.name is None:
            return self._topLevelObjectGenerator(
                request, dataset.getNumReadGroupSets(),
                dataset.getReadGroupSetByIndex)
        else:
            try:
                readGroupSet = dataset.getReadGroupSetByName(request.name)
            except exceptions.ReadGroupSetNameNotFoundException:
                return self._noObjectGenerator()
            return self._singleObjectGenerator(readGroupSet)
Returns a generator over the (readGroupSet, nextPageToken) pairs
dataset/ETHPy150Open ga4gh/server/ga4gh/backend.py/Backend.readGroupSetsGenerator