code: def test_invalid_shap_config():
      with pytest.raises(ValueError) as error:
          SHAPConfig(
              baseline=[[1]],
              num_samples=1,
              agg_method="invalid",
          )
      assert (
          "Invalid agg_method invalid. Please choose mean_abs, median, or mean_sq."
          in str(error.value)
      )
      with pytest.raises(ValueError) as error:
          SHAPConfig(
              baseline=[[1]],
              num_samples=1,
              agg_method="mean_abs",
              num_clusters=2,
          )
      assert (
          "Baseline and num_clusters cannot be provided together. Please specify one of the two."
          in str(error.value)
      )
      with pytest.raises(ValueError) as error:
          SHAPConfig(
              baseline=[[1, 2]],
              num_samples=1,
              text_config=TextConfig(
                  granularity="token", language="english"
              ),
              features_to_explain=[0],
          )
      assert (
          "`features_to_explain` is not supported for datasets containing text features or images."
          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 26 for calling a global function with example usage: test_invalid_shap_config() without return types