def variantAnnotationSetsGenerator(self, request):
        """
        Returns a generator over the (variantAnnotationSet, nextPageToken)
        pairs defined by the specified request.
        """
        compoundId = datamodel.VariantSetCompoundId.parse(request.variantSetId)
        dataset = self.getDataRepository().getDataset(compoundId.datasetId)
        results = []
        for annset in dataset.getVariantAnnotationSets():
            try:
                variantSetId = request.variantSetId
            except __HOLE__:
                variantSetId = ""
            if str(annset._variantSetId) == str(variantSetId):
                results.append(annset)
        return self._objectListGenerator(request, results)
dataset/ETHPy150Open ga4gh/server/ga4gh/backend.py/Backend.variantAnnotationSetsGenerator