def poll_parser(poll):
if __is_deleted(poll):<EOL><INDENT>return deleted_parser(poll)<EOL><DEDENT>if poll['<STR_LIT:type>'] not in poll_types:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>return Poll(<EOL>poll['<STR_LIT:id>'],<EOL>poll['<STR_LIT>'],<EOL>__check_key('<STR_LIT>', poll),  <EOL>__check_key('<STR_LIT>', poll),  <EOL>poll['<STR_LIT>'],<EOL>poll['<STR_LIT:text>'],<EOL>poll['<STR_LIT:time>'],<EOL>poll['<STR_LIT:title>'],<EOL>poll['<STR_LIT:type>'],<EOL>)<EOL>
Parses a poll object