code: def _run_download_artifact_command(args) -> pathlib.Path:
      """
      :param command: An `mlflow artifacts` command list.
      :return: Path to the downloaded artifact.
      """
      runner = CliRunner()
      resp = runner.invoke(
          download_artifacts, args=args, catch_exceptions=False
      )
      assert resp.exit_code == 0
      download_output_path = resp.stdout.rstrip().split("\n")[-1]
      return next(pathlib.Path(download_output_path).iterdir())
  
file_path: mlflow/tests/store/artifact/test_cli.py
imports: import json
  import pathlib
  from unittest import mock
  import pytest
  from click.testing import CliRunner
  import mlflow
  import mlflow.pyfunc
  from mlflow.entities import FileInfo
  from mlflow.store.artifact.cli import _file_infos_to_json, download_artifacts
  from mlflow.tracking.artifact_utils import _download_artifact_from_uri
label_desc: Use image node_id 4 for calling a global function with example usage: _run_download_artifact_command(args) and returns: next