def SplitEvenly(arr, max_size):
  arr_len = len(arr)
  if arr_len < 1:
    return
  split_size = int(math.ceil(float(arr_len) /
                             (math.ceil(float(arr_len) / max_size))))
  logging.info('split size is %d for len %d max_size %d',
               split_size, arr_len, max_size)
  idx = 0
  while idx < arr_len:
    yield arr[idx:idx + split_size]
    idx += split_size
Test finding nodes.
dataset/ETHPy150Open GoogleCloudPlatform/Data-Pipeline/app/src/clients/gcs.py/SplitEvenly--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/test/test_xpath.py/XPathTest.test_queryForNodes