code: def test_invalid_init():
      with pytest.raises(InvalidArgument) as exc_info:
          Image(mime_type="application/vnd.bentoml+json")
      assert "Invalid Image mime_type" in str(exc_info.value)
      with pytest.raises(InvalidArgument) as exc_info:
          Image(pilmode="asdf")
      assert "Invalid Image pilmode" in str(exc_info.value)
  
file_path: BentoML/tests/unit/_internal/io/test_image.py
imports: from __future__ import annotations
  import io
  from typing import TYPE_CHECKING
  import pytest
  from bentoml._internal.utils import LazyLoader
  from bentoml.exceptions import BadInput
  from bentoml.exceptions import InvalidArgument
  from bentoml.grpc.utils import import_generated_stubs
  from bentoml.io import Image
label_desc: Use image node_id 1 for calling a global function with example usage: test_invalid_init() without return types