def METHOD_NAME(cls, data: Dict, context: Dict, **kwargs) -> "KubernetesCompute":
    if not data:
        data = {"namespace": "default"}
    if "namespace" not in data:
        data["namespace"] = "default"
    loaded_data = load_from_dict(KubernetesComputeSchema, data, context, **kwargs)
    return KubernetesCompute(**loaded_data)