code: def test_download_artifacts_with_run_id_no_path(run_with_artifact):
      run, artifact_path, _ = run_with_artifact
      artifact_relative_path_top_level_dir = pathlib.PurePosixPath(
          artifact_path
      ).parts[0]
      downloaded_output_path = mlflow.artifacts.download_artifacts(
          run_id=run.info.run_id
      )
      downloaded_artifact_directory_name = next(
          pathlib.Path(downloaded_output_path).iterdir()
      ).name
      assert (
          downloaded_artifact_directory_name
          == artifact_relative_path_top_level_dir
      )
  
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 4 for calling a global function with example usage: test_download_artifacts_with_run_id_no_path(run_with_artifact) without return types