code: def test_s3_client_config_set_correctly(s3_artifact_root):
      repo = OptimizedS3ArtifactRepository(
          posixpath.join(s3_artifact_root, "some/path")
      )
      s3_client = repo._get_s3_client()
      assert s3_client.meta.config.s3.get("addressing_style") == "path"
  
file_path: mlflow/tests/store/artifact/test_optimized_s3_artifact_repo.py
imports: import os
  import posixpath
  from datetime import datetime
  from unittest import mock
  from unittest.mock import ANY
  import pytest
  from mlflow.protos.service_pb2 import FileInfo
  from mlflow.store.artifact.optimized_s3_artifact_repo import OptimizedS3ArtifactRepository
  from mlflow.store.artifact.s3_artifact_repo import _MAX_CACHE_SECONDS, _cached_get_s3_client
  from tests.helper_functions import set_boto_credentials
label_desc: Use image node_id 6 for calling a global function with example usage: test_s3_client_config_set_correctly(s3_artifact_root) without return types