class_docstr: Stores artifacts on Cloudflare R2.
code: def parse_s3_compliant_uri(self, uri):
      # r2 uri format(virtual): r2://<bucket-name>@<account-id>.r2.cloudflarestorage.com/<path>
      parsed = urlparse(uri)
      if parsed.scheme != "r2":
          raise Exception(f"Not an R2 URI: {uri}")
  
      host = parsed.netloc
      path = parsed.path
  
      bucket = host.split("@")[0]
      if path.startswith("/"):
          path = path[1:]
      return bucket, path
  
file_path: mlflow/mlflow/store/artifact/r2_artifact_repo.py
imports: from urllib.parse import urlparse
  from mlflow.store.artifact.optimized_s3_artifact_repo import OptimizedS3ArtifactRepository
  from mlflow.store.artifact.s3_artifact_repo import _get_s3_client
label_desc: Use image node_id 3 for calling the R2ArtifactRepository obj's underlying member method code with example usage: obj.parse_s3_compliant_uri(uri) and returns: bucket,  path