code: def _chunk_page_ids(page_ids, chunk_size=50):
      """
      Returns a list of lists to limit page ids being queried to specified size.
  
      :param chunk_size:
      :param page_ids: List of pageids
      :return:
      """
      if not page_ids:
          return []
  
      page_id_chunks = []
      while len(page_ids) > chunk_size:
          page_id_chunks.append(page_ids[0:chunk_size])
          page_ids = page_ids[chunk_size:]
      page_id_chunks.append(page_ids)
      return page_id_chunks
  
file_path: facets/facets_atlasmaker/utils/wikipedia_sourcelist_generator.py
imports: import csv
  import os
  from absl import app
  from absl import flags
  from absl import logging
  import requests
label_desc: Use image node_id 3 for calling a global function with example usage: _chunk_page_ids(page_ids, chunk_size) and returns: page_id_chunks, list