code: def test_validate_local_mode_schema_with_additional_key(
      base_local_mode_config,
  ):
      config = dict(**base_local_mode_config)
      config["foo"] = "bar"
      with pytest.raises(exceptions.ValidationError):
          validate(
              config, SAGEMAKER_PYTHON_SDK_LOCAL_MODE_CONFIG_SCHEMA
          )
  
      config2 = dict(**base_local_mode_config)
      config2["local"]["foo"] = "bar"
      with pytest.raises(exceptions.ValidationError):
          validate(
              config2, SAGEMAKER_PYTHON_SDK_LOCAL_MODE_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 33 for calling a global function with example usage: test_validate_local_mode_schema_with_additional_key(base_local_mode_config) without return types