code: def mock_request(method, url, *_args, **_kwargs):
      resp = Response()
      resp.status_code = 200
      resp.close = lambda: None
      if method.lower() == "delete":
          # Abort-multipart-upload request
          return resp
      elif method.lower() == "put":
          # Upload-part request
          part_number = extract_part_number(url)
          resp.headers = {"ETag": f"etag-{part_number}"}
          return resp
      else:
          raise Exception("Unreachable")
  
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 40 for calling a global function with example usage: mock_request(method, url) and returns: resp, resp