def __contains__(self, rule):
assert isinstance(rule, ClassifierRule)<EOL>assert rule.algorithm is self.algorithm<EOL>return rule.action in self._population.get(rule.condition, ())<EOL>
Defining this determines the behavior of "item in instance".