def METHOD_NAME(core_emulator: Emulator):
    device_handler = BackgroundDeviceHandler(core_emulator.client)
    debug = device_handler.debuglink()
    features = device_handler.features()
    assert features.recovery_mode is False
    device_handler.run(device.recover, pin_protection=False)
    assert debug.wait_layout().title() == "RECOVER WALLET"
    layout = debug.click(buttons.OK, wait=True)
    assert "number of words" in layout.text_content()
    debug = _restart(device_handler, core_emulator)
    features = device_handler.features()
    assert features.recovery_mode is True
    # no waiting for layout because layout doesn't change
    assert "number of words" in debug.read_layout().text_content()
    # clicking at 24 in word choice (the same coords as CANCEL)
    layout = debug.click(buttons.CANCEL, wait=True)
    # Cancelling the backup
    assert "Enter your backup" in debug.read_layout().text_content()
    layout = debug.click(buttons.CANCEL, wait=True)
    assert layout.title() in ("ABORT RECOVERY", "CANCEL RECOVERY")
    layout = debug.click(buttons.OK, wait=True)
    assert layout.main_component() == "Homescreen"
    features = device_handler.features()
    assert features.recovery_mode is False