def _matches(self, item):
        if self.match_any:
            if len(item.get_effects()) > 0:
                return True
            else:
                return False

        for effect in item.get_effects():
            if effect == self.effect:
                return True
        return False
Check if matcher matches item
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/matchers/active_effects.py/EffectInstance._matches