def test_numpy_slices_list_2():
    logger.info('Test Slicing a 2D list into 1D list.')
    np_data = [[1, 2], [3, 4]]
    ds = de.NumpySlicesDataset(np_data, column_names=['col1'], shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data[0], np_data[i]).all()
def test_numpy_slices_list_2():
    logger.info('Test Slicing a 2D list into 1D list.')
    np_data = [[1, 2], [3, 4]]
    ds = de.NumpySlicesDataset(np_data, column_names=['col1'], shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data[0], np_data[i]).all()