def __contains__(self, rule):
assert isinstance(rule, ClassifierRule)<EOL>return (<EOL>rule.action == self._action and<EOL>rule.condition in self._rules<EOL>)<EOL>
Defining this determines the behavior of "item in instance".