code: def test_server_update_with_invalid_config(
      tmp_path: Path,
      basic_config_dict,
      invalid_config_dict,
      basic_routes,
  ):
      config = tmp_path / "config.yaml"
      save_yaml(config, basic_config_dict)
  
      with Gateway(config) as gateway:
          response = gateway.get(BASE_ROUTE)
          assert response.json()["routes"] == basic_routes
          # Give filewatch a moment to cycle
          gateway.wait_reload()
          # push an invalid config
          save_yaml(config, invalid_config_dict)
          gateway.assert_health()
          # ensure that filewatch has run through the aborted config change logic
          gateway.wait_reload()
          gateway.assert_health()
          response = gateway.get(BASE_ROUTE)
          assert response.json()["routes"] == basic_routes
  
file_path: mlflow/tests/gateway/test_runner.py
imports: from pathlib import Path
  import pytest
  from tests.gateway.tools import Gateway, save_yaml
label_desc: Use image node_id 7 for calling a global function with example usage: test_server_update_with_invalid_config(tmp_path, basic_config_dict, invalid_config_dict, basic_routes) without return types