def METHOD_NAME(client: Client):
    _ensure_unlocked(client, PIN4)
    with client:
        br_amount = 7 if client.debug.model == "T" else 8
        client.set_expected_responses(
            [messages.ButtonRequest()] * br_amount
            + [messages.Success, messages.Features]
        )
        client.use_pin_sequence([PIN4, PIN4, WIPE_CODE4, WIPE_CODE4])
        device.change_wipe_code(client)
    client.init_device()
    assert client.features.wipe_code_protection is True
    _check_wipe_code(client, PIN4, WIPE_CODE4)