def check_applied(result):
if result and '<STR_LIT>' in result[<NUM_LIT:0>] and result[<NUM_LIT:0>]['<STR_LIT>'] == False:<EOL><INDENT>raise LWTException('<STR_LIT>')<EOL><DEDENT>
check if result contains some column '[applied]' with false value,
if that value is false, it means our light-weight transaction didn't
applied to database.