def METHOD_NAME(config: dict):
    try:
        env = config[constants.CONFIG_COMMUNITY][constants.CONFIG_COMMUNITY_ENVIRONMENT]
        return enums.CommunityEnvironments(env) is enums.CommunityEnvironments.Staging
    except (KeyError, ValueError):
        return False