def deserialize_value(ty, value):
uty = ty.upper()<EOL>if uty == '<STR_LIT>':<EOL><INDENT>if value.isdigit():<EOL><INDENT>return bool(int(value))<EOL><DEDENT>elif value.upper() == '<STR_LIT>':<EOL><INDENT>return False<EOL><DEDENT>elif value.upper() == '<STR_LIT>':<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>elif uty == '<STR_LIT>': <EOL><INDENT>if '<STR_LIT:">' in value:<EOL><INDENT>return uuid.UUID(value[<NUM_LIT:1>:-<NUM_LIT:1>]).int<EOL><DEDENT>else:<EOL><INDENT>return int(value)<EOL><DEDENT><DEDENT>elif uty == '<STR_LIT>': <EOL><INDENT>return float(value)<EOL><DEDENT>elif uty == '<STR_LIT>': <EOL><INDENT>return value[<NUM_LIT:1>:-<NUM_LIT:1>].replace("<STR_LIT>", "<STR_LIT:'>")<EOL><DEDENT>elif uty == '<STR_LIT>': <EOL><INDENT>if '<STR_LIT:">' in value:<EOL><INDENT>return uuid.UUID(value[<NUM_LIT:1>:-<NUM_LIT:1>]).int<EOL><DEDENT>else:<EOL><INDENT>return int(value)<EOL><DEDENT><DEDENT>
Deserialize a value of some type