def get(value):
if not isinstance(value, Token):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not hasattr(value, '<STR_LIT>'):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not value.identifier:<EOL><INDENT>value = value.__class__(**value.__dict__)<EOL>value.identifier = '<STR_LIT:v>'<EOL><DEDENT>ident = Identifier(value.identifier)<EOL>return Query([<EOL>Match(value),<EOL>Return(ident)<EOL>])<EOL>
Query to get the value.