code: def test_build_waitress_command():
      assert server._build_waitress_command(
          "",
          "localhost",
          "5000",
          f"{server.__name__}:app",
          is_factory=True,
      ) == [
          sys.executable,
          "-m",
          "waitress",
          "--host=localhost",
          "--port=5000",
          "--ident=mlflow",
          "--call",
          "mlflow.server:app",
      ]
      assert server._build_waitress_command(
          "",
          "localhost",
          "5000",
          f"{server.__name__}:app",
          is_factory=False,
      ) == [
          sys.executable,
          "-m",
          "waitress",
          "--host=localhost",
          "--port=5000",
          "--ident=mlflow",
          "mlflow.server:app",
      ]
  
file_path: mlflow/tests/server/test_init.py
imports: import sys
  from unittest import mock
  import pytest
  from mlflow import server
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 4 for calling a global function with example usage: test_build_waitress_command() without return types