code: def run_with_json_artifact():
      artifact_path = "test/config.json"
      artifact_content = {"mlflow-version": "0.28", "n_cores": "10"}
      with mlflow.start_run() as run:
          mlflow.log_dict(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 8 for calling a global function with example usage: run_with_json_artifact() and returns: Artifact