code: def test_invalid_model_config_with_bad_endpoint_name_prefix():
      with pytest.raises(ValueError) as error:
          ModelConfig(
              model_name="xgboost-model",
              instance_type="ml.c5.xlarge",
              instance_count=1,
              accept_type="invalid_accept_type",
              endpoint_name_prefix="~invalid_endpoint_prefix",
          )
      assert (
          "Invalid endpoint_name_prefix. Please follow pattern ^[a-zA-Z0-9](-*[a-zA-Z0-9])."
          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 14 for calling a global function with example usage: test_invalid_model_config_with_bad_endpoint_name_prefix() without return types