I woud rewrite this as:

```python
test_examples = [extract_instance(doc)
                            for doc in itertools.islice(data_streamer, n_test_documents)] 
```