def METHOD_NAME(self: Self) -> OWIDEnvType:
    """Detect environment type."""
    # live
    if config.DB_NAME == "live_grapher":
        return "live"
    # staging
    elif config.DB_NAME == "staging_grapher" and config.DB_USER == "staging_grapher":
        return "staging"
    # local
    elif config.DB_NAME == "grapher" and config.DB_USER == "grapher":
        return "local"
    return "unknown"