code: def test_deploy_with_route_prefix_conflict(
      mocked_application_state_manager,
  ):
      """Test that an application with a route prefix conflict fails to deploy"""
      app_state_manager, _, _ = mocked_application_state_manager
  
      app_state_manager.apply_deployment_args(
          "app1", [deployment_params("a", "/hi")]
      )
      with pytest.raises(RayServeException):
          app_state_manager.apply_deployment_args(
              "app2", [deployment_params("b", "/hi")]
          )
  
imports: import sys
  from typing import Dict, List, Tuple
  from unittest.mock import Mock, PropertyMock, patch
  import pytest
  from ray.exceptions import RayTaskError
  from ray.serve._private.application_state import ApplicationState, ApplicationStateManager, override_deployment_info
  from ray.serve._private.common import ApplicationStatus, DeploymentID, DeploymentStatus, DeploymentStatusInfo, DeploymentStatusTrigger
  from ray.serve._private.config import DeploymentConfig, ReplicaConfig
  from ray.serve._private.deploy_utils import deploy_args_to_deployment_info
  from ray.serve._private.deployment_info import DeploymentInfo
  from ray.serve._private.test_utils import MockKVStore
  from ray.serve._private.utils import get_random_string
  from ray.serve.exceptions import RayServeException
  from ray.serve.schema import DeploymentSchema, ServeApplicationSchema
label_desc: Use image node_id 12 for calling a global function with example usage: test_deploy_with_route_prefix_conflict(mocked_application_state_manager) without return types