code: def run_with_image_artifact():
      from PIL import Image
  
      artifact_path = "test/image.png"
      image = Image.new("RGB", (100, 100))
      with mlflow.start_run() as run:
          mlflow.log_image(image, artifact_path)
  
      artifact_uri = str(
          pathlib.PurePosixPath(run.info.artifact_uri) / artifact_path
      )
      return Artifact(artifact_uri, image)
  
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 9 for calling a global function with example usage: run_with_image_artifact() and returns: Artifact