code: def getAllReadGroups(self):
          
          for dataset in self.getAllDatasets():
              iterator = self._client.search_read_group_sets(
                  dataset_id=dataset.id)
              for readGroupSet in iterator:
                  readGroupSet = self._client.get_read_group_set(
                      readGroupSet.id)
                  for readGroup in readGroupSet.read_groups:
                      yield readGroup.id
docs: Get all read groups in a read group set