def __getitem__(self, rule):
assert rule.action is self._action<EOL>return self._rules[rule.condition]<EOL>
Return the existing version of the classifier rule having the
        same condition and action and appearing in this action set. This
        is useful for looking up a rule to avoid duplication.