def validate_id(request):
if '<STR_LIT:id>' in request:<EOL><INDENT>correct_id = isinstance(<EOL>request['<STR_LIT:id>'],<EOL>(string_types, int, None),<EOL>)<EOL>error = '<STR_LIT>'<EOL>assert correct_id, error<EOL><DEDENT>
Validate request id.