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)
  
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 1 for calling a global function with example usage: run_with_artifact(tmp_path) and returns: run,  artifact_path,  artifact_content