def METHOD_NAME(index):
    """ 'batch_size' is twice as small as length DatasetIndex. """
    index, _ = index
    for _ in range(10):
        batch = index.next_batch(batch_size=2,
                                 n_epochs=None,
                                 drop_last=True)
        assert len(batch) == 2