def show_sprites(sprs):
    ENDC = '\033[0m'
    length = sprite.length(sprs)
    tiles = []
    for i in range(length):
        spr = get_printable_sprite(sprite.get_sprite(i, sprs))
        tiles.append(spr)
        if len(tiles) % 8 == 0:
            out = ''
            for t in tiles:
                for l in t:
                    out += l + ENDC
                out += '\n'
            tiles = []
            print (out)
dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/__init__.py/show_sprites/original