code: def create_cas_validate_url(cas_url, cas_route, service, ticket,
                              renew=None):
      
      return create_url(
          cas_url,
          cas_route,
          ('service', service),
          ('ticket', ticket),
          ('renew', renew),
      )
docs: Create a CAS validate URL.
  
      Keyword arguments:
      cas_url -- The url to the CAS (ex. http://sso.pdx.edu)
      cas_route -- The route where the CAS lives on server (ex. /cas/serviceValidate)
      service -- (ex.  http://localhost:5000/login)
      ticket -- (ex. 'ST-58274-x839euFek492ou832Eena7ee-cas')
      renew -- "true" or "false"
  
      Example usage:
      >>> create_cas_validate_url(
      ...     'http://sso.pdx.edu',
      ...     '/cas/serviceValidate',
      ...     'http://localhost:5000/login',
      ...     'ST-58274-x839euFek492ou832Eena7ee-cas'
      ... )
      'http://sso.pdx.edu/cas/serviceValidate?service=http%3A%2F%2Flocalhost%3A5000%2Flogin&ticket=ST-58274-x839euFek492ou832Eena7ee-cas'