code: def test_invalid_route_definition(tmp_path):
      invalid_conf = {
          "routes": [
              {
                  "name": "invalid_route",
                  "route_type": "invalid/route",
                  "model": {
                      "name": "gpt-4",
                      "provider": "openai",
                      "config": {
                          "openai_api_key": "mykey",
                          "openai_api_base": "https://api.openai.com/v1",
                          "openai_api_version": "2023-05-10",
                          "openai_api_type": "openai/v1/chat/completions",
                          "openai_organization": "my_company",
                      },
                  },
              }
          ]
      }
      conf_path = tmp_path.joinpath("config.yaml")
      conf_path.write_text(yaml.safe_dump(invalid_conf))
  
      with pytest.raises(
          MlflowException,
          match=r"The route_type 'invalid/route' is not supported.",
      ):
          _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 7 for calling a global function with example usage: test_invalid_route_definition(tmp_path) without return types