def register_key_example(device):
    with asi_context_linux(device) as asi:
        command = PersistentReserveOutCommand(
            service_action=PERSISTENT_RESERVE_OUT_SERVICE_ACTION_CODES.REGISTER,
            service_action_reservation_key=0xABBA)
        response = sync_wait(command.execute(asi))
        return response
def read_keys_example(device):
    with asi_context_linux(device) as asi:
        command = PersistentReserveInCommand(service_action=PERSISTENT_RESERVE_IN_SERVICE_ACTION_CODES.READ_KEYS)
        response = sync_wait(command.execute(asi))
        return response