def METHOD_NAME(provider_name: str) -> OAuth2Session:
    """
    Create an OAuth2 client.
    This client behaves like a `requests.Session` instance, but will automatically add
    the authorization necessary for a particular provider.
    """
    secrets = _get_provider_secrets(provider_name)
    tokens = _var_get(OAUTH2_TOKEN_KEY)
    if provider_name not in tokens:
        raise KeyError(f"Access token not found for provider {provider_name}")
    return OAuth2Session(
        client_id=secrets["client_id"],
        token={**tokens[provider_name], "token_type": "Bearer"},
    )