code: def get_chunks(sequence, chunk_size):
      
      return [
          sequence[idx:idx + chunk_size]
          for idx in range(0, len(sequence), chunk_size)
      ]
docs: Split sequence into chunks.
  
      :param list sequence:
      :param int chunk_size: