code: def test_init_validation_and_cleaning():
      with mock.patch(
          f"{DATABRICKS_ARTIFACT_REPOSITORY}._get_run_artifact_root",
          return_value=MOCK_RUN_ROOT_URI,
      ):
          # Basic artifact uri
          repo = get_artifact_repository(
              "dbfs:/databricks/mlflow-tracking/MOCK-EXP/MOCK-RUN-ID/artifacts"
          )
          assert (
              repo.artifact_uri == "dbfs:/databricks/mlflow-tracking/"
              "MOCK-EXP/MOCK-RUN-ID/artifacts"
          )
          assert repo.run_id == MOCK_RUN_ID
          assert repo.run_relative_artifact_repo_root_path == ""
  
          with pytest.raises(
              MlflowException, match="DBFS URI must be of the form dbfs"
          ):
              DatabricksArtifactRepository("s3://test")
          with pytest.raises(
              MlflowException, match="Artifact URI incorrect"
          ):
              DatabricksArtifactRepository(
                  "dbfs:/databricks/mlflow/EXP/RUN/artifact"
              )
          with pytest.raises(
              MlflowException, match="DBFS URI must be of the form dbfs"
          ):
              DatabricksArtifactRepository(
                  "dbfs://scope:key@notdatabricks/databricks/mlflow-tracking/experiment/1/run/2"
              )
  
imports: import json
  import os
  import posixpath
  import re
  import shutil
  import time
  from unittest import mock
  from unittest.mock import ANY
  import pytest
  from requests.models import Response
  from mlflow.entities.file_info import FileInfo
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_artifacts_pb2 import ArtifactCredentialInfo, ArtifactCredentialType, CompleteMultipartUpload, CreateMultipartUpload, GetCredentialsForRead, GetCredentialsForWrite, GetPresignedUploadPartUrl
  from mlflow.protos.service_pb2 import FileInfo, ListArtifacts
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.databricks_artifact_repo import _MAX_CREDENTIALS_REQUEST_SIZE, DatabricksArtifactRepository
label_desc: Use image node_id 4 for calling a global function with example usage: test_init_validation_and_cleaning() without return types