code: def update(self, cookies):
      
      cookie_jar = self.get_cookie_jar()
      for cookie in cookies:
        cookie_jar.set_cookie(cookie)
      with self._lock:
        cookie_jar.save()
docs: Add specified cookies to our cookie jar, and persists it.
  
      :param cookies: Any iterable that yields http.cookiejar.Cookie instances, such as a CookieJar.