def user_parser(user):
if __is_deleted(user):<EOL><INDENT>return deleted_parser(user)<EOL><DEDENT>if user['<STR_LIT:id>'] in item_types:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>if type(user['<STR_LIT:id>']) == int:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>return User(<EOL>user['<STR_LIT:id>'],<EOL>user['<STR_LIT>'],<EOL>user['<STR_LIT>'],<EOL>user['<STR_LIT>'],<EOL>user['<STR_LIT>'],<EOL>user['<STR_LIT>'],<EOL>)<EOL>
Parses a user object