code: def test_generate_deepspeed_serving_properties_invalid_configurations(
      mock_s3_list, mock_read_file, sagemaker_session
  ):
      mock_s3_list.return_value = [
          VALID_UNCOMPRESSED_MODEL_DATA + "/config.json"
      ]
      model_config = {
          "model_type": "bert",
          "n_head": 4,
      }
      mock_read_file.return_value = json.dumps(model_config)
      model = DeepSpeedModel(
          VALID_UNCOMPRESSED_MODEL_DATA,
          ROLE,
          sagemaker_session=sagemaker_session,
          tensor_parallel_degree=4,
          enable_cuda_graph=True,
      )
      with pytest.raises(ValueError) as invalid_config:
          _ = model.generate_serving_properties()
      assert str(invalid_config.value).startswith(
          "enable_cuda_graph is not supported"
      )
  
imports: from __future__ import absolute_import
  import logging
  import json
  from json import JSONDecodeError
  import pytest
  from mock import Mock, MagicMock
  from mock import patch, mock_open
  from sagemaker.djl_inference import defaults, DJLModel, DJLPredictor, HuggingFaceAccelerateModel, DeepSpeedModel
  from sagemaker.djl_inference.model import DJLServingEngineEntryPointDefaults
  from sagemaker.s3_utils import s3_path_join
  from sagemaker.session_settings import SessionSettings
  from tests.unit import _test_default_bucket_and_prefix_combinations, DEFAULT_S3_BUCKET_NAME, DEFAULT_S3_OBJECT_KEY_PREFIX_NAME
label_desc: Use image node_id 10 for calling a global function with example usage: test_generate_deepspeed_serving_properties_invalid_configurations(mock_s3_list, mock_read_file, sagemaker_session) without return types