code: def test_file_artifact_is_logged_with_content_metadata(
      s3_artifact_repo, s3_artifact_root, tmp_path
  ):
      file_name = "test.txt"
      file_path = os.path.join(tmp_path, file_name)
      file_text = "Hello world!"
  
      with open(file_path, "w") as f:
          f.write(file_text)
  
      s3_artifact_repo.log_artifact(file_path)
  
      bucket, _ = s3_artifact_repo.parse_s3_compliant_uri(
          s3_artifact_root
      )
      s3_client = s3_artifact_repo._get_s3_client()
      response = s3_client.head_object(
          Bucket=bucket, Key="some/path/test.txt"
      )
      assert response.get("ContentType") == "text/plain"
      assert response.get("ContentEncoding") is None
  
imports: import json
  import os
  import posixpath
  import tarfile
  from datetime import datetime
  from unittest import mock
  from unittest.mock import ANY
  import botocore.exceptions
  import pytest
  import requests
  from mlflow.entities.multipart_upload import MultipartUploadPart
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.optimized_s3_artifact_repo import OptimizedS3ArtifactRepository
  from mlflow.store.artifact.s3_artifact_repo import _MAX_CACHE_SECONDS, S3ArtifactRepository, _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_file_artifact_is_logged_with_content_metadata(s3_artifact_repo, s3_artifact_root, tmp_path) without return types