def validate(self):
        for key, value in list(self.data.items()):
            if Options.valid_options not in key:
                del self[key]
            else:
                is_valid = Options.valid_options[key]
                if not is_valid(value):
                    del self[key]
dataset/ETHPy150Open sigmavirus24/betamax/betamax/options.py/Options.validate/swapped operands of `not in`