code: def test_duplicate_routes_in_config(tmp_path):
      route = {
          "routes": [
              {
                  "name": "classifier",
                  "route_type": "llm/v1/classifier",
                  "model": {
                      "name": "serving-endpoints/document-classifier/Production/invocations",
                      "provider": "databricks-model-serving",
                      "config": {
                          "databricks_api_token": "MY_TOKEN",
                          "databricks_api_base": "https://my-shard-001/",
                      },
                  },
              },
              {
                  "name": "classifier",
                  "route_type": "llm/v1/classifier",
                  "model": {
                      "name": "serving-endpoints/document-classifier/Production/invocations",
                      "provider": "databricks_serving_endpoint",
                      "config": {
                          "databricks_api_token": "MY_TOKEN",
                          "databricks_api_base": "https://my-shard-001/",
                      },
                  },
              },
          ]
      }
      conf_path = tmp_path.joinpath("config.yaml")
      conf_path.write_text(yaml.safe_dump(route))
      with pytest.raises(
          MlflowException,
          match="Duplicate names found in endpoint configurations. Please",
      ):
          _load_route_config(conf_path)
  
file_path: mlflow/tests/gateway/test_gateway_config_parsing.py
imports: import re
  import warnings
  import pytest
  import yaml
  from mlflow.exceptions import MlflowException
  from mlflow.gateway.config import AnthropicConfig, OpenAIConfig, RouteConfig, _load_route_config, _resolve_api_key_from_input, _save_route_config
  from mlflow.gateway.utils import assemble_uri_path
label_desc: Use image node_id 12 for calling a global function with example usage: test_duplicate_routes_in_config(tmp_path) without return types