code: def test_upload_artifacts_to_uri(tmp_path):
      artifact_file_name = "artifact.txt"
      artifact_text = "Sample artifact text"
      local_artifact_path = tmp_path.joinpath(artifact_file_name)
      local_artifact_path.write_text(artifact_text)
  
      with mlflow.start_run() as run:
          mlflow.log_metric("coolness", 1)
  
      artifact_uri = f"runs:/{run.info.run_id}/"
      _upload_artifact_to_uri(local_artifact_path, artifact_uri)
      downloaded_artifact_path = os.path.join(
          _download_artifact_from_uri(artifact_uri), artifact_file_name
      )
      with open(downloaded_artifact_path) as f:
          assert f.read() == artifact_text
  
file_path: mlflow/tests/tracking/test_artifact_utils.py
imports: import os
  from unittest import mock
  from unittest.mock import ANY
  from uuid import UUID
  import mlflow
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri, _upload_artifact_to_uri, _upload_artifacts_to_databricks
label_desc: Use image node_id 6 for calling a global function with example usage: test_upload_artifacts_to_uri(tmp_path) without return types