code: def test_load_image_invalid_image(run_with_text_artifact):
      artifact = run_with_text_artifact
      with pytest.raises(
          mlflow.exceptions.MlflowException,
          match="Unable to form a PIL Image object",
      ):
          mlflow.artifacts.load_image(artifact.uri)
  
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 14 for calling a global function with example usage: test_load_image_invalid_image(run_with_text_artifact) without return types