def restore_backup_workflow(device: bitbox02.BitBox02) -> None:
    """TODO: Document"""
    backups = list(device.list_backups())
    print_backups(backups)
    if not backups:
        return
    item = int(input("Choose a backup:\n"))
    backup_id, _, _ = backups[item - 1]
    print(f"ID: {backup_id}")
    if not device.restore_backup(backup_id):
        print("Restoring backup failed")
        return
    print("Please Remove SD Card")
    device.insert_or_remove_sdcard(remove=True)
def setup_workflow(device: bitbox02.BitBox02) -> None:
    """TODO: Document"""
    device.insert_or_remove_sdcard(insert=True)
    print("SD Card Inserted")
    change_name(device, "Shifty")
    print("Please choose a password of the BitBox02. " +
          "This password will be used to unlock your BitBox02.")
    while not device.set_password():
        print("Passwords did not match. please try again")

    print("Your BitBox02 will now create a backup of your wallet...")
    print("Please confirm the date on your device.")
    if not device.create_backup():
        print("Creating the backup failed")
        exit()
    print("Backup created sucessfully")

    print("Please Remove SD Card")
    device.insert_or_remove_sdcard(remove=True)