code: def test_log_artifacts(artifact_path):
      file_content_1 = (
          "A simple test artifact\nThe artifact is located in: "
          + str(artifact_path)
      )
      file_content_2 = os.urandom(300)
  
      file1 = "meta.yaml"
      directory = "saved_model"
      file2 = "sk_model.pickle"
      with TempDir() as local, TempDir() as remote:
          with open(os.path.join(local.path(), file1), "w") as f:
              f.write(file_content_1)
          os.mkdir(os.path.join(local.path(), directory))
          with open(
              os.path.join(local.path(), directory, file2), "wb"
          ) as f:
              f.write(file_content_2)
  
          sftp_path = "sftp://" + remote.path()
          store = SFTPArtifactRepository(sftp_path)
          store.log_artifacts(local.path(), artifact_path)
  
          remote_dir = posixpath.join(
              remote.path(),
              "." if artifact_path is None else artifact_path,
          )
          assert posixpath.isdir(remote_dir)
          assert posixpath.isdir(posixpath.join(remote_dir, directory))
          assert posixpath.isfile(posixpath.join(remote_dir, file1))
          assert posixpath.isfile(
              posixpath.join(remote_dir, directory, file2)
          )
  
          with open(
              posixpath.join(remote_dir, file1)
          ) as remote_content:
              assert remote_content.read() == file_content_1
  
          with open(
              posixpath.join(remote_dir, directory, file2), "rb"
          ) as remote_content:
              assert remote_content.read() == file_content_2
  
file_path: mlflow/tests/store/artifact/test_sftp_artifact_repo.py
imports: import os
  import posixpath
  from tempfile import NamedTemporaryFile
  import pytest
  import mlflow
  from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
  from mlflow.store.artifact.sftp_artifact_repo import SFTPArtifactRepository
  from mlflow.utils.file_utils import TempDir
label_desc: Use image node_id 5 for calling a global function with example usage: test_log_artifacts(artifact_path) without return types