def METHOD_NAME(
    host: str, access_token: Union[None, str, dse.OAuthToken] = None
) -> dse.ApiClient:
    api_client = dse.ApiClient()
    api_client.host = host
    if isinstance(access_token, dse.OAuthToken):
        access_token = access_token.access_token
    if access_token:
        api_client.set_default_header("Authorization", f"Bearer {access_token}")
    return api_client