def METHOD_NAME(fpe_type):
    trigger = getattr(acts.FpeMonitor, f"_trigger_{_names[fpe_type].lower()}")
    def func(context):
        trigger()
        assert context.fpeMonitor is not None
        context.fpeMonitor.rearm()
        trigger()
    # Mask, but it's below threshold
    s = acts.examples.Sequencer(
        events=10,
        numThreads=-1,
        failOnFirstFpe=True,
        fpeMasks=[
            acts.examples.Sequencer.FpeMask(*_locs[fpe_type], fpe_type, 1),
        ],
    )
    s.addAlgorithm(FuncAlg("Alg", func))
    with pytest.raises(acts.FpeFailure):
        s.run()
    # Mask
    s = acts.examples.Sequencer(
        events=10,
        numThreads=-1,
        failOnFirstFpe=True,
        fpeMasks=[
            acts.examples.Sequencer.FpeMask(*_locs[fpe_type], fpe_type, 3),
        ],
    )
    s.addAlgorithm(FuncAlg("Alg", func))
    s.run()
    res = s.fpeResult
    for x in acts.FpeType.values:
        assert res.count(x) == (s.config.events * 2 if x == fpe_type else 0)