code: def chunk(seq, n):
      """
      divide a sequence into equal sized chunks
      (the last chunk may be smaller, but won't be empty)
      """
      chunks = []
      some = []
      for element in seq:
          if len(some) == n:
              chunks.append(some)
              some = []
          some.append(element)
      if len(some) > 0:
          chunks.append(some)
      return chunks
  
file_path: arrow/cpp/build-support/lintutils.py
imports: import multiprocessing
  import os
  from fnmatch import fnmatch
  from subprocess import Popen
label_desc: Use image node_id 1 for calling a global function with example usage: chunk(seq, n) and returns: chunks