def __contains__(self, key):
        if isinstance(key, int):
            return len(self.tags) <= key
        elif isinstance(key, basestring):
            for tag in self.tags:
                if tag.name == key:
                    return True
            return False
        elif isinstance(key, TAG):
            return key in self.tags
        return False
dataset/ETHPy150Open benbaptist/minecraft-wrapper/src/nbt.py/TAG_Compound.__contains__/swapped operands of `<=`