code: def add_cookies_to_web_driver(driver, cookies):
      
      for cookie in cookies:
          driver.add_cookie(convert_cookie_to_dict(cookie))
      return driver
docs: Sets cookies in an existing WebDriver session.