class_docstr: An optimized version of the S3 Artifact Repository.
  
  This class is used for uploading and downloading S3 artifacts for UC models. While it largely
  copies the behavior of the S3ArtifactRepository, the `log_artifact`, `log_artifacts`, and
  `_download_file` methods are optimized by replacing boto3 client operations with the use of
  presigned URLs for both uploads and downloads.
class_docstr_tok: ["An","optimized","version","of","the","S3","Artifact","Repository",".","This","class","is","used","for","uploading","and","downloading","S3","artifacts","for","UC","models",".","While","it","largely","copies","the","behavior","of","the","S3ArtifactRepository",",","the","`","log_artifact","`",",","`","log_artifacts","`",",","and","`","_download_file","`","methods","are","optimized","by","replacing","boto3","client","operations","with","the","use","of","presigned","URLs","for","both","uploads","and","downloads","."]
docstr: Parse an S3 URI, returning (bucket, path)
docstr_tok: ["Parse","an","S3","URI",",","returning","(","bucket",",","path",")"]
code: def parse_s3_compliant_uri(self, uri):
      """Parse an S3 URI, returning (bucket, path)"""
      parsed = urllib.parse.urlparse(uri)
      if parsed.scheme != "s3":
          raise Exception(f"Not an S3 URI: {uri}")
      path = parsed.path
      if path.startswith("/"):
          path = path[1:]
      return parsed.netloc, path
  
imports: import json
  import logging
  import math
  import os
  import posixpath
  import urllib.parse
  from mimetypes import guess_type
  from mlflow.entities import FileInfo
  from mlflow.environment_variables import MLFLOW_ENABLE_MULTIPART_UPLOAD, MLFLOW_MULTIPART_UPLOAD_CHUNK_SIZE, MLFLOW_S3_UPLOAD_EXTRA_ARGS
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_artifacts_pb2 import ArtifactCredentialInfo
  from mlflow.store.artifact.cloud_artifact_repo import CloudArtifactRepository, _complete_futures
  from mlflow.store.artifact.s3_artifact_repo import _get_s3_client
  from mlflow.utils.file_utils import read_chunk
  from mlflow.utils.request_utils import cloud_storage_http_request
  from mlflow.utils.rest_utils import augmented_raise_for_status
label_desc: Use image node_id 4 for calling the OptimizedS3ArtifactRepository obj's underlying member method code with example usage: obj.parse_s3_compliant_uri(uri) and returns: parsed,  path