code: def _wait(url: str):
      t = time.time()
      while time.time() - t < 5:
          try:
              if requests.get(f"{url}/health").ok:
                  yield
          except requests.exceptions.ConnectionError:
              pass
          time.sleep(1)
  
      pytest.fail("Server did not start")
  
imports: import subprocess
  import sys
  import time
  from pathlib import Path
  import jwt
  import psutil
  import pytest
  import requests
  import mlflow
  from mlflow import MlflowClient
  from mlflow.environment_variables import MLFLOW_TRACKING_PASSWORD, MLFLOW_TRACKING_USERNAME
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import UNAUTHENTICATED, ErrorCode
  from mlflow.utils.os import is_windows
  from tests.helper_functions import random_str
  from tests.server.auth.auth_test_utils import ADMIN_USERNAME, User, create_user
  from tests.tracking.integration_test_utils import _init_server, _send_rest_tracking_post_request, get_safe_port
label_desc: Use image node_id 8 for calling a global function with example usage: _wait(url) without return types