def _ignored_except_internals_and_recoveries(self, ignored_portion):
    # Note that dependent_labels only contains dependencies between input
    # events. Dependencies with internal events are inferred by EventScheduler.
    # Also note that we treat failure/recovery as an atomic pair, so we don't prune
    # recovery events on their own.
    return set(e for e in ignored_portion
               if (isinstance(e, InputEvent) and e.prunable and
                   self._recovery_types not in type(e)))
dataset/ETHPy150Open ucb-sts/sts/sts/event_dag.py/EventDag._ignored_except_internals_and_recoveries/swapped operands of `not in`