code: def test_invalid_custom_parameters_schema(base_config_with_schema):
      config = base_config_with_schema
  
      config["CustomParameters"] = {"^&": "custom_value"}
      with pytest.raises(exceptions.ValidationError):
          validate(config, SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA)
  
      config["CustomParameters"] = {"custom_key": 476}
      with pytest.raises(exceptions.ValidationError):
          validate(config, SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA)
  
      config["CustomParameters"] = {
          "custom_key": {"custom_key": "custom_value"}
      }
      with pytest.raises(exceptions.ValidationError):
          validate(config, SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA)
  
imports: from __future__ import absolute_import
  from jsonschema import validate, exceptions
  import pytest
  from sagemaker.config.config_schema import SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA, SAGEMAKER_PYTHON_SDK_LOCAL_MODE_CONFIG_SCHEMA
label_desc: Use image node_id 26 for calling a global function with example usage: test_invalid_custom_parameters_schema(base_config_with_schema) without return types