def cookie_dump(key, value='<STR_LIT>', max_age=None, expires=None, path='<STR_LIT:/>',<EOL>domain=None, secure=False, httponly=False):
cookie = SimpleCookie()<EOL>cookie[key] = value<EOL>for attr in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT:path>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>attr_key = attr.replace('<STR_LIT:_>', '<STR_LIT:->')<EOL>attr_value = locals()[attr]<EOL>if attr_value:<EOL><INDENT>cookie[key][attr_key] = attr_value<EOL><DEDENT><DEDENT>return cookie<EOL>
:rtype: ``Cookie.SimpleCookie``