def _get_product_queries(self, query):
    for (dataset_type, q) in self.types.search_robust(**query):
        q['dataset_type_id'] = dataset_type.id
        (yield (q, dataset_type))
def _get_product_queries(self, query):
    for (dataset_type, q) in self.types.search_robust(**query):
        q['dataset_type_id'] = dataset_type.id
        (yield (q, dataset_type))