code: def text_artifact(tmp_path):
      artifact_name = "test.txt"
      artifacts_root_tmp = mkdir(tmp_path.joinpath(str(uuid.uuid4())))
      test_artifact_path = artifacts_root_tmp.joinpath(artifact_name)
      test_artifact_path.write_text("test")
      return ArtifactReturnType(
          artifacts_root_tmp, test_artifact_path, artifact_name
      )
  
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 15 for calling a global function with example usage: text_artifact(tmp_path) and returns: ArtifactReturnType