def get_default_credentials(scopes):
    """Gets the Application Default Credentials."""
    credentials, _ = google.auth.default(scopes=scopes)
    return credentials
Gets the Application Default Credentials.