code: def test_s3_client_config_set_correctly(r2_artifact_root):
      with mock.patch(
          "mlflow.store.artifact.r2_artifact_repo.R2ArtifactRepository._get_region_name"
      ) as mock_method:
          mock_method.return_value = None
  
          artifact_uri = posixpath.join(r2_artifact_root, "some/path")
          repo = get_artifact_repository(artifact_uri)
  
          s3_client = repo._get_s3_client()
          assert (
              s3_client.meta.config.s3.get("addressing_style")
              == "virtual"
          )
  
file_path: mlflow/tests/store/artifact/test_r2_artifact_repo.py
imports: import posixpath
  from unittest import mock
  from unittest.mock import ANY
  import pytest
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.s3_artifact_repo import _cached_get_s3_client
  from tests.helper_functions import set_boto_credentials
label_desc: Use image node_id 4 for calling a global function with example usage: test_s3_client_config_set_correctly(r2_artifact_root) without return types