code: def chunks(arr, size):
      
      for i in _range(0, len(arr), size):
          yield arr[i:i+size]
docs: Splits a list into chunks
  
      :param arr: list to split
      :type arr: :class:`list`
      :param size: number of elements in each chunk
      :type size: :class:`int`
      :return: generator object
      :rtype: :class:`generator`