

def test_frame_lookup():
    input_data = [('foo', 15), ('bar', 19), ('baz', 26)]
    lookup = FrameLookup(input_data)
    assert (len(lookup) == ((15 + 19) + 26))
    assert (lookup[15] == ('bar', 19, 0))
    assert (lookup[14] == ('foo', 15, 14))
    assert (input_data[((15 + 19) + 4)] == ('baz', 26, 4))

dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/tests/test_video.py test_frame_lookup/VarMisuse@90/108 `lookup`->`input_data`