def METHOD_NAME(sim_mover: epicsdemo.Mover) -> None:
    RE = RunEngine()
    sim_mover.move(0)
    def my_plan():
        sim_mover.move(0)
        return
        yield
    with pytest.raises(RuntimeError, match="Will deadlock run engine if run in a plan"):
        RE(my_plan())