code: def test_download_artifacts_with_uri(run_with_artifact):
      run, artifact_path, artifact_content = run_with_artifact
      run_uri = f"runs:/{run.info.run_id}/{artifact_path}"
      actual_uri = str(
          pathlib.PurePosixPath(run.info.artifact_uri) / artifact_path
      )
      for uri in (run_uri, actual_uri):
          download_output_path = mlflow.artifacts.download_artifacts(
              artifact_uri=uri
          )
          downloaded_artifact_path = next(
              pathlib.Path(download_output_path).iterdir()
          )
          assert (
              downloaded_artifact_path.read_text() == artifact_content
          )
  
imports: import pathlib
  import uuid
  from collections import namedtuple
  from typing import NamedTuple
  from unittest import mock
  import pytest
  import mlflow
  from mlflow.exceptions import MlflowException
  from mlflow.utils.file_utils import mkdir, path_to_local_file_uri
  from mlflow.utils.os import is_windows
label_desc: Use image node_id 2 for calling a global function with example usage: test_download_artifacts_with_uri(run_with_artifact) without return types