def update_query_parameters(url, query_parameters):
scheme, netloc, path, query_string, fragment = urlsplit(url)<EOL>url_params = parse_qs(query_string)<EOL>url_params.update(query_parameters)<EOL>return urlunsplit(<EOL>(scheme, netloc, path, urlencode(sorted(url_params.items()), doseq=True), fragment),<EOL>)<EOL>
Return url with updated query parameters.

Arguments:
    url (str): Original url whose query parameters need to be updated.
    query_parameters (dict): A dictionary containing query parameters to be added to course selection url.

Returns:
    (slug): slug identifier for the identity provider that can be used for identity verification of
        users associated the enterprise customer of the given user.