code: def test_calling_segment_async_in_image_mode(self):
      options = _ImageSegmenterOptions(
          base_options=_BaseOptions(model_asset_path=self.model_path),
          running_mode=_RUNNING_MODE.IMAGE,
      )
      with _ImageSegmenter.create_from_options(options) as segmenter:
          with self.assertRaisesRegex(
              ValueError, r"not initialized with the live stream mode"
          ):
              segmenter.segment_async(self.test_image, 0)
  
imports: import enum
  import os
  from unittest import mock
  from absl.testing import absltest
  from absl.testing import parameterized
  import cv2
  import numpy
  from mediapipe.python._framework_bindings import image
  from mediapipe.python._framework_bindings import image_frame
  from mediapipe.tasks.python.core import base_options
  from mediapipe.tasks.python.test import test_utils
  from mediapipe.tasks.python.vision import image_segmenter
  from mediapipe.tasks.python.vision.core import vision_task_running_mode
label_desc: Use image node_id 13 for calling the ImageSegmenterTest obj's underlying member method code with example usage: obj.test_calling_segment_async_in_image_mode() without return types