def _BatchDatastoreOp(self, op, entities_or_keys, batch_size=25):
    for i in xrange(0, len(entities_or_keys), batch_size):
      op(entities_or_keys[i:i + batch_size])
Performs a batch Datastore operation on a sequence of keys or entities.
dataset/ETHPy150Open google/cauliflowervest/src/cauliflowervest/server/cron/group_sync.py/GroupSync._BatchDatastoreOp