code: def split_seq(iterable, size):
      
      elm = iter(iterable)
      item = list(itertools.islice(elm, size))
      while item:
          yield item
          item = list(itertools.islice(elm, size))
docs: Splits a passed iterable into chunks of a given size.