code: def iter_chunks(chunksize, *iterables):
      
      iterables = iter(zip(*iterables))
  
      while 1:
          chunk = tuple(islice(iterables, chunksize))
  
          if not chunk:
              return
  
          yield chunk
docs: Iterates over zipped iterables in chunks.