code: def _augment_url_with_version(auth_url):
      
      if has_in_url_path(auth_url, ["/v2.0", "/v3"]):
          return auth_url
  
      if get_keystone_version() >= 3:
          return url_path_append(auth_url, "/v3")
      else:
          return url_path_append(auth_url, "/v2.0")
docs: Optionally augment auth_url path with version suffix.
  
      Check if path component already contains version suffix and if it does
      not, append version suffix to the end of path, not erasing the previous
      path contents, since keystone web endpoint (like /identity) could be
      there. Keystone version needs to be added to endpoint because as of Kilo,
      the identity URLs returned by Keystone might no longer contain API
      versions, leaving the version choice up to the user.