def METHOD_NAME():
    def random_docs(num_docs):
        for j in range(1, num_docs + 1):
            doc = {
                'id': f'root {j}',
                'text': f'i\'m dummy doc {j}',
                'offset': 1000,
                'tags': {'id': 1000},
                'chunks': [
                    {'id': 'c1', 'text': f'i\'m chunk 1', 'modality': 'text'},
                    {'id': 'c2', 'text': f'i\'m chunk 2', 'modality': 'image'},
                ],
            }
            yield doc
    req = request_generator('', data=random_docs(100), request_size=100)
    request = next(req)
    assert len(request.docs) == 100
    for index, doc in enumerate(request.docs, 1):
        assert doc.text == f'i\'m dummy doc {index}'
        assert doc.id == f'root {index}'
        assert doc.offset == 1000
        assert doc.tags['id'] == 1000
        assert len(doc.chunks) == 2
        assert doc.chunks[0].modality == 'text'
        assert doc.chunks[0].text == f'i\'m chunk 1'
        assert doc.chunks[1].modality == 'image'
        assert doc.chunks[1].text == f'i\'m chunk 2'