def auth0_user_is_superuser(auth0_user):
    """
    Check if an Auth0User has been marked as having superuser status.

    :param django_db_auth0_user.models.Auth0User auth0_user: The Auth0User to check for supervisor status.
    :return:
    """
    if auth0_user.auth0_app_metadata:
        return auth0_user.auth0_app_metadata.get('is_superuser', False)
    else:
        return False
