code: def test_invalid_image_config():
      model_type = "OBJECT_SEGMENTATION"
      num_segments = 2
      with pytest.raises(ValueError) as error:
          ImageConfig(
              model_type=model_type,
              num_segments=num_segments,
          )
      assert (
          "Clarify SHAP only supports object detection and image classification methods. "
          "Please set model_type to OBJECT_DETECTION or IMAGE_CLASSIFICATION."
          in str(error.value)
      )
  
imports: from __future__ import absolute_import, print_function
  import copy
  import pytest
  from mock import MagicMock, Mock, patch
  from sagemaker import Processor, image_uris
  from sagemaker.clarify import BiasConfig, DataConfig, ModelConfig, ModelPredictedLabelConfig, PDPConfig, SageMakerClarifyProcessor, SHAPConfig, TextConfig, ImageConfig, _AnalysisConfigGenerator, DatasetType, ProcessingOutputHandler, SegmentationConfig
label_desc: Use image node_id 25 for calling a global function with example usage: test_invalid_image_config() without return types