code: def run_with_text_artifact():
      artifact_path = "test/file.txt"
      artifact_content = "This is a sentence"
      with mlflow.start_run() as run:
          mlflow.log_text(artifact_content, artifact_path)
  
      artifact_uri = str(
          pathlib.PurePosixPath(run.info.artifact_uri) / artifact_path
      )
      return Artifact(artifact_uri, 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 7 for calling a global function with example usage: run_with_text_artifact() and returns: Artifact