code: def test_s3_creds_passed_to_client(s3_artifact_root):
      with mock.patch("boto3.client") as mock_get_s3_client:
          repo = OptimizedS3ArtifactRepository(
              s3_artifact_root,
              access_key_id="my-id",
              secret_access_key="my-key",
              session_token="my-session-token",
          )
          repo._get_s3_client()
          mock_get_s3_client.assert_called_with(
              "s3",
              config=ANY,
              endpoint_url=ANY,
              verify=None,
              aws_access_key_id="my-id",
              aws_secret_access_key="my-key",
              aws_session_token="my-session-token",
              region_name=ANY,
          )
  
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 7 for calling a global function with example usage: test_s3_creds_passed_to_client(s3_artifact_root) without return types