def METHOD_NAME(kwargs):
    variables = (
        "user",
        "key",
        "authurl",
        "retries",
        "preauthurl",
        "preauthtoken",
        "snet",
        "starting_backoff",
        "max_backoff",
        "tenant_name",
        "os_options",
        "auth_version",
        "cacert",
        "insecure",
        "ssl_compression",
    )
    ret = {}
    for var in kwargs:
        if var in variables:
            ret[var] = kwargs[var]
    return ret