code: def test_check_configuration_route_name_collisions():
      config = {
          "routes": [
              {"name": "name1"},
              {"name": "name2"},
              {"name": "name1"},
          ]
      }
      with pytest.raises(
          MlflowException,
          match="Duplicate names found in endpoint configurations",
      ):
          check_configuration_route_name_collisions(config)
  
file_path: mlflow/tests/gateway/test_utils.py
imports: import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.gateway.utils import SearchRoutesToken, _is_valid_uri, assemble_uri_path, check_configuration_route_name_collisions, get_gateway_uri, is_valid_endpoint_name, resolve_route_url, set_gateway_uri
label_desc: Use image node_id 4 for calling a global function with example usage: test_check_configuration_route_name_collisions() without return types