code: def test_create_sqlalchemy_engine_with_retry_fail():
      with mock.patch(
          "sqlalchemy.inspect",
          side_effect=[Exception("failed")] * utils.MAX_RETRY_COUNT,
      ), mock.patch(
          "mlflow.store.db.utils.create_sqlalchemy_engine",
          return_value="Engine",
      ) as mock_create_sqlalchemy_engine, mock.patch(
          "time.sleep"
      ):
          with pytest.raises(Exception, match=r"failed"):
              utils.create_sqlalchemy_engine_with_retry(
                  "mydb://host:port/"
              )
          assert (
              mock_create_sqlalchemy_engine.mock_calls
              == [mock.call("mydb://host:port/")]
              * utils.MAX_RETRY_COUNT
          )
  
file_path: mlflow/tests/store/db/test_utils.py
imports: from unittest import mock
  import pytest
  from sqlalchemy.pool import NullPool
  from sqlalchemy.pool.impl import QueuePool
  from mlflow.store.db import utils
label_desc: Use image node_id 8 for calling a global function with example usage: test_create_sqlalchemy_engine_with_retry_fail() without return types