def test_y_index_space(self):
        data_specs = (IndexSpace(max_labels=10, dim=1), 'targets')
        it = self.test.iterator(mode='sequential',
                                data_specs=data_specs,
                                batch_size=100)
        for y in it:
            pass
Tests that requesting the targets to be in IndexSpace and iterating
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/tests/test_mnist.py/TestMNIST.test_y_index_space