def load_indexed_sprites(src):
    f = open(src, 'rb')
    content = f.read()
    assert len(content) % 16 == 0
    bin = [ord(c) for c in content]
    assert len(bin) % 16 == 0
    indexes = OrderedDict()
    for i in range(len(content) / 16):
        indexes[content[i * 16: i * 16 + 16]] = i
    return bin, indexes
dataset/ETHPy150Open gutomaia/pyNES/pynes/sprite.py/load_indexed_sprites/original