code: def test_artifact_can_be_downloaded_from_absolute_uri_successfully(
      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)
  
      logged_artifact_path = "artifact"
      with mlflow.start_run():
          mlflow.log_artifact(
              local_path=local_artifact_path,
              artifact_path=logged_artifact_path,
          )
          artifact_uri = mlflow.get_artifact_uri(
              artifact_path=logged_artifact_path
          )
  
      downloaded_artifact_path = os.path.join(
          _download_artifact_from_uri(artifact_uri), artifact_file_name
      )
      assert downloaded_artifact_path != local_artifact_path
      assert downloaded_artifact_path != logged_artifact_path
      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 1 for calling a global function with example usage: test_artifact_can_be_downloaded_from_absolute_uri_successfully(tmp_path) without return types