def METHOD_NAME(
    cls, values: Dict[str, Any]
) -> Dict[str, Any]:
    if values.get("enabled") and not values.get("warehouse_id"):
        raise ValueError("warehouse_id must be set when profiling is enabled.")
    return values