code: def test_deploy_config_duplicate_apps(self):
      deploy_config_dict = {
          "applications": [
              {
                  "name": "app1",
                  "route_prefix": "/alice",
                  "import_path": "module.graph",
              },
              {
                  "name": "app2",
                  "route_prefix": "/charlie",
                  "import_path": "module.graph",
              },
          ],
      }
      ServeDeploySchema.parse_obj(deploy_config_dict)
  
      # Duplicate app1
      deploy_config_dict["applications"].append(
          {
              "name": "app1",
              "route_prefix": "/bob",
              "import_path": "module.graph",
          },
      )
      with pytest.raises(ValidationError) as e:
          ServeDeploySchema.parse_obj(deploy_config_dict)
      assert "app1" in str(e.value) and "app2" not in str(e.value)
  
      # Duplicate app2
      deploy_config_dict["applications"].append(
          {
              "name": "app2",
              "route_prefix": "/david",
              "import_path": "module.graph",
          }
      )
      with pytest.raises(ValidationError) as e:
          ServeDeploySchema.parse_obj(deploy_config_dict)
      assert "app1" in str(e.value) and "app2" in str(e.value)
  
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 the TestServeDeploySchema obj's underlying member method code with example usage: obj.test_deploy_config_duplicate_apps() without return types