def constraint(self, constraint_name, field):
        print('CONSTRAINT: {} ... {}'.format(constraint_name, field))
        if self.props['constraints'] not in constraint_name:
            raise ValueError(
                'Constraint {} does not exist!'.format(constraint_name))
        _args, _kwargs = field['args'], field['kwargs']
        return self.props['constraints'][constraint_name](*_args, **_kwargs)
dataset/ETHPy150Open christabor/MoAL/MOAL/storage/modeling/data_modeling.py/Structure.constraint/swapped operands of `not in`