def _convert_to_python(self, value_dict, state):
        is_empty = self.field_is_empty

        if value_dict in self.field and value_dict.get(self.field) == self.expected_value:
            for required_field in self.required_fields:
                if required_field not in value_dict or is_empty(value_dict.get(required_field)):
                    raise Invalid(
                        _('You must give a value for %s') % required_field,
                        value_dict, state,
                        error_dict={required_field:
                            Invalid(self.message('empty', state),
                                value_dict.get(required_field), state)})
        return value_dict
dataset/ETHPy150Open formencode/formencode/formencode/validators.py/RequireIfMatching._convert_to_python/swapped operands of `in`