def METHOD_NAME():
    s = acts.examples.Sequencer(
        events=10000,
        failOnFirstFpe=False,
    )
    s.addAlgorithm(FuncAlg("Invalid", lambda _: acts.FpeMonitor._trigger_invalid()))
    with pytest.raises(RuntimeError):
        s.run()
    res = s.fpeResult
    for x in acts.FpeType.values:
        assert res.count(x) == (s.config.events if x == acts.FpeType.FLTINV else 0)