code: def get_cached_document_ids(ids, doc_type):
      
      for batch in _split_list(ids):
          for id in _get_cached_document_ids(batch, doc_type):
              yield id
docs: Get the ids of documents that have been parsed with this doc_type