code: def _build_waitress_command(
      waitress_opts, host, port, app_name, is_factory
  ):
      opts = shlex.split(waitress_opts) if waitress_opts else []
      return [
          sys.executable,
          "-m",
          "waitress",
          *opts,
          f"--host={host}",
          f"--port={port}",
          "--ident=mlflow",
          *(["--call"] if is_factory else []),
          app_name,
      ]
  
imports: import importlib
  import importlib.metadata
  import os
  import shlex
  import sys
  import textwrap
  import types
  from flask import Flask, Response, send_from_directory
  from packaging.version import Version
  from mlflow.exceptions import MlflowException
  from mlflow.server import handlers
  from mlflow.server.handlers import STATIC_PREFIX_ENV_VAR, _add_static_prefix, create_promptlab_run_handler, gateway_proxy_handler, get_artifact_handler, get_metric_history_bulk_handler, get_model_version_artifact_handler, search_datasets_handler, upload_artifact_handler
  from mlflow.utils.os import is_windows
  from mlflow.utils.process import _exec_cmd
  from mlflow.version import VERSION
label_desc: Use image node_id 15 for calling a global function with example usage: _build_waitress_command(waitress_opts, host, port, app_name, is_factory) and returns: list