code: def get_valid_runtime_envs() -> List[Dict]:
      """Get list of runtime environments allowed in Serve config/REST API."""
  
      return [
          # Empty runtime_env
          {},
          # Runtime_env with remote_URIs
          {
              "working_dir": TEST_MODULE_PINNED_URI,
              "py_modules": [TEST_DEPLOY_GROUP_PINNED_URI],
          },
          # Runtime_env with extra options
          {
              "working_dir": TEST_MODULE_PINNED_URI,
              "py_modules": [TEST_DEPLOY_GROUP_PINNED_URI],
              "pip": ["pandas", "numpy"],
              "env_vars": {
                  "OMP_NUM_THREADS": "32",
                  "EXAMPLE_VAR": "hello",
              },
              "excludes": "imaginary_file.txt",
          },
      ]
  
imports: import copy
  import json
  import logging
  import sys
  from typing import Dict, List, Optional, Union
  import pytest
  from ray import serve
  from ray._private.pydantic_compat import ValidationError
  from ray.serve.config import AutoscalingConfig
  from ray.serve.deployment import deployment_to_schema, schema_to_deployment
  from ray.serve.schema import DeploymentSchema, LoggingConfig, RayActorOptionsSchema, ServeApplicationSchema, ServeDeploySchema, ServeInstanceDetails
  from ray.serve.tests.common.remote_uris import TEST_DEPLOY_GROUP_PINNED_URI, TEST_MODULE_PINNED_URI
  from ray.util.accelerators.accelerators import NVIDIA_TESLA_P4, NVIDIA_TESLA_V100
label_desc: Use image node_id 1 for calling a global function with example usage: get_valid_runtime_envs() and returns: list