def has_sprite(self, spr):
        if isinstance(spr, list):
            spr = encode_sprite(spr)
            spr = ''.join(chr(c) for c in spr)
        if self.indexes in spr:
            return self.indexes[spr]
        return False
dataset/ETHPy150Open gutomaia/pyNES/pynes/sprite.py/SpriteSet.has_sprite/swapped operands of `in`