def METHOD_NAME(params: dict):
    return "&".join(
        [
            "{}={}".format(urlquote(k, safe=""), urlquote(str(v), safe="~"))
            for k, v in sorted(params.items())
        ]
    )