code: def chunklist(l, n):
      
      n = max(1, n)
      for i in range(0, len(l), n):
          yield l[i:i+n]
docs: Yield successive n-sized chunks from l.
  
      Args:
          l (object): The object to chunk.
          n (int): The size of the chunks.
      Yields:
          The next chunk in the object.
      Raises:
          TypeError: if ``l`` has no :py:func:`len`.
      Examples:
          >>> for c in arcresthelper.common.chunklist(list(range(20)), 6):
          ...     print(c)
          [0, 1, 2, 3, 4, 5]
          [6, 7, 8, 9, 10, 11]
          [12, 13, 14, 15, 16, 17]
          [18, 19]
          >>> list(arcresthelper.common.chunklist(string.ascii_uppercase, 7))
          ['ABCDEFG', 'HIJKLMN', 'OPQRSTU', 'VWXYZ']