def test_numpy_slices_tuple_3():
    logger.info('Test reading different dimension of tuple data.')
    (features, labels) = (np.random.sample((5, 2)), np.random.sample((5, 1)))
    data = (features, labels)
    ds = de.NumpySlicesDataset(data, column_names=['col1', 'col2'], shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data[0], features[i]).all()
        assert (data[1] == labels[i])
def test_numpy_slices_tuple_3():
    logger.info('Test reading different dimension of tuple data.')
    (features, labels) = (np.random.sample((5, 2)), np.random.sample((5, 1)))
    data = (features, labels)
    ds = de.NumpySlicesDataset(data, column_names=['col1', 'col2'], shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data[0], features[i]).all()
        assert (data[1] == labels[i])