class_docstr: Configuration for the environment block.
class_docstr_tok: ["Configuration","for","the","environment","block","."]
docstr: Check for extra fields and print a warning.
docstr_tok: ["Check","for","extra","fields","and","print","a","warning","."]
code: def check_extra_fields(cls, values: dict) -> dict:
      """Check for extra fields and print a warning."""
      for key in values:
          if key not in ["type", "region"]:
              wandb.termwarn(
                  f"Unrecognized field {key} in environment block. Please check your config file."
              )
      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 1 for calling the EnvironmentConfig obj's underlying member method code with example usage: obj.check_extra_fields(cls, values) and returns: values