code: def test_mlflow_artifact_uri_raises_with_invalid_tracking_uri():
      failing_conditions = [
          f"mlflow-artifacts://5000/{base_path}",
          "mlflow-artifacts://5000/",
      ]
  
      for failing_condition in failing_conditions:
          with pytest.raises(
              MlflowException,
              match="The mlflow-artifacts uri was supplied with a port number: 5000, but no "
              "host was defined.",
          ):
              MlflowArtifactsRepository(failing_condition)
  
imports: import os
  import posixpath
  from unittest import mock
  import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.mlflow_artifacts_repo import MlflowArtifactsRepository
  from mlflow.tracking._tracking_service.utils import _get_default_host_creds
label_desc: Use image node_id 4 for calling a global function with example usage: test_mlflow_artifact_uri_raises_with_invalid_tracking_uri() without return types