code: def set(self, name, value, domain, **kwargs):
          
  
          if domain == 'localhost':
              domain = ''
  
          self.cookiejar.set_cookie(create_cookie(name, value, domain, **kwargs))
docs: Add new cookie or replace existing cookie with same parameters.
  
          :param name: name of cookie
          :param value: value of cookie
          :param kwargs: extra attributes of cookie