docstr: Validate that kaniko is configured correctly.
docstr_tok: ["Validate","that","kaniko","is","configured","correctly","."]
code: def validate_kaniko(cls, values: dict) -> dict:
      """Validate that kaniko is configured correctly."""
      if values.get("type") == BuilderType.kaniko:
          if values.get("build-context-store") is None:
              raise ValueError(
                  "builder.build-context-store is required if builder.type is set to kaniko."
              )
      return values
  
imports: from enum import Enum
  from typing import List, Optional
  from pydantic import BaseModel, Field, ValidationError, root_validator, validator
  import wandb
  from wandb.sdk.launch.utils import AZURE_BLOB_REGEX, AZURE_CONTAINER_REGISTRY_URI_REGEX, ELASTIC_CONTAINER_REGISTRY_URI_REGEX, GCP_ARTIFACT_REGISTRY_URI_REGEX, GCS_URI_RE, S3_URI_RE
label_desc: Use image node_id 3 for calling the BuilderConfig obj's underlying member method code with example usage: obj.validate_kaniko(cls, values) and returns: values