docs: def slice_into_pieces(seq, n):
      """Slice a sequence into `n` pieces, return a generation of n pieces"""
      length = len(seq)
      if length % n == 0:
          size = length // n
      else:
          size = length // n + 1
      for it in slice_by_size(seq, size):
          yield it