code: def run_with_artifact(tmp_path):
      artifact_path = "test"
      artifact_content = "content"
      local_path = tmp_path.joinpath("file.txt")
      local_path.write_text(artifact_content)
      with mlflow.start_run() as run:
          mlflow.log_artifact(local_path, artifact_path)
  
      return (run, artifact_path, artifact_content)
  
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 1 for calling a global function with example usage: run_with_artifact(tmp_path) and returns: run,  artifact_path,  artifact_content