<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def http_session(cookies=None):
 """ Generate a Requests session @param cookies: Cookies to load. None loads the app default CookieJar. False disables cookie loading. @type cookies: dict, cookielib.LWPCookieJar, None or False @rtype requests.Session """

    session = requests.Session()
    if cookies is not False:
        session.cookies.update(cookies or cookiejar())
    session.headers.update({'User-Agent': 'ipsv/{v}'.format(v=ips_vagrant.__version__)})

    return session