<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_cookies_to_web_driver(driver, cookies):
 """ Sets cookies in an existing WebDriver session. """

    for cookie in cookies:
        driver.add_cookie(convert_cookie_to_dict(cookie))
    return driver