code: def test_start_invalid_config(tmp_path):
      runner = CliRunner()
      config = tmp_path.joinpath("config.yml")
      res = runner.invoke(
          start,
          ["--config-path", config],
          catch_exceptions=False,
      )
      assert res.exit_code == 2
      assert "does not exist" in res.output
  
      config.write_text("\t")
      res = runner.invoke(
          start,
          ["--config-path", config],
          catch_exceptions=False,
      )
      assert res.exit_code == 2
      assert "not a valid yaml file" in res.output
  
      config.write_text(
          """
  routes:
    - model:
      name: invalid
  """
      )
      res = runner.invoke(
          start,
          ["--config-path", config],
          catch_exceptions=False,
      )
      assert res.exit_code == 2
      assert "The gateway configuration is invalid" in res.output
  
imports: from click.testing import CliRunner
  from mlflow.gateway.cli import start
label_desc: Use image node_id 2 for calling a global function with example usage: test_start_invalid_config(tmp_path) without return types