def test_numpy_slices_tuple_1():
    logger.info('Test slicing a list of tuple.')
    np_data = [([1, 2], [3, 4]), ([11, 12], [13, 14]), ([21, 22], [23, 24])]
    ds = de.NumpySlicesDataset(np_data, shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data, np_data[i]).all()
    assert (sum([1 for _ in ds]) == 3)
def test_numpy_slices_tuple_1():
    logger.info('Test slicing a list of tuple.')
    np_data = [([1, 2], [3, 4]), ([11, 12], [13, 14]), ([21, 22], [23, 24])]
    ds = de.NumpySlicesDataset(np_data, shuffle=False)
    for (i, data) in enumerate(ds):
        assert np.equal(data, np_data[i]).all()
    assert (sum([1 for _ in ds]) == 3)