<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_cached_document_ids(ids, doc_type):
 """Get the ids of documents that have been parsed with this doc_type"""

    for batch in _split_list(ids):
        for id in _get_cached_document_ids(batch, doc_type):
            yield id