def get_user_agent(**kwargs):
user_agent = kwargs.get('<STR_LIT>', None)<EOL>if not user_agent:<EOL><INDENT>return get_user_agent_default()<EOL><DEDENT>return user_agent<EOL>
If there is a useragent, find it.

Look in the keywords for user_agent. If not found,
return get_user_agent_default