class_docstr: Describes one Serve application, and currently can also be used as a standalone
  config to deploy a single application to a Ray cluster.
class_docstr_tok: ["Describes","one","Serve","application",",","and","currently","can","also","be","used","as","a","standalone","config","to","deploy","a","single","application","to","a","Ray","cluster","."]
code: def runtime_env_contains_remote_uris(cls, v):
      # Ensure that all uris in py_modules and working_dir are remote
  
      if v is None:
          return
  
      uris = v.get("py_modules", [])
      if "working_dir" in v and v["working_dir"] not in uris:
          uris.append(v["working_dir"])
  
      for uri in uris:
          if uri is not None:
              try:
                  parse_uri(uri)
              except ValueError as e:
                  raise ValueError(
                      "runtime_envs in the Serve config support only "
                      "remote URIs in working_dir and py_modules. Got "
                      f"error when parsing URI: {e}"
                  )
  
      return v
  
imports: import logging
  from collections import Counter
  from dataclasses import dataclass, field
  from enum import Enum
  from typing import Any, Dict, List, Optional, Set, Union
  from zlib import crc32
  from ray._private.pydantic_compat import BaseModel, Extra, Field, root_validator, validator
  from ray._private.runtime_env.packaging import parse_uri
  from ray.serve._private.common import ApplicationStatus, DeploymentStatus, DeploymentStatusTrigger, ProxyStatus, ReplicaState, ServeDeployMode
  from ray.serve._private.constants import DEFAULT_GRPC_PORT, DEFAULT_UVICORN_KEEP_ALIVE_TIMEOUT_S, SERVE_DEFAULT_APP_NAME
  from ray.serve._private.deployment_info import DeploymentInfo
  from ray.serve._private.utils import DEFAULT
  from ray.serve.config import ProxyLocation
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 2 for calling the ServeApplicationSchema obj's underlying member method code with example usage: obj.runtime_env_contains_remote_uris(cls, v) and returns: v