code: def test_merge_behavior(get_data_dir, expected_merged_config):
      valid_config_file_path = os.path.join(
          get_data_dir, "sample_config_for_merge.yaml"
      )
      additional_override_config_file_path = os.path.join(
          get_data_dir, "sample_additional_config_for_merge.yaml"
      )
      os.environ[
          "SAGEMAKER_ADMIN_CONFIG_OVERRIDE"
      ] = valid_config_file_path
      assert expected_merged_config == load_sagemaker_config(
          additional_config_paths=[
              additional_override_config_file_path
          ],
          repeat_log=True,
      )
      os.environ[
          "SAGEMAKER_USER_CONFIG_OVERRIDE"
      ] = additional_override_config_file_path
      assert expected_merged_config == load_sagemaker_config(
          repeat_log=True
      )
      del os.environ["SAGEMAKER_ADMIN_CONFIG_OVERRIDE"]
      del os.environ["SAGEMAKER_USER_CONFIG_OVERRIDE"]
  
imports: from __future__ import absolute_import
  import os
  import pytest
  import yaml
  import logging
  from mock import Mock, MagicMock, patch, call
  from sagemaker.config.config import load_local_mode_config, load_sagemaker_config, logger, non_repeating_log_factory, _DEFAULT_ADMIN_CONFIG_FILE_PATH, _DEFAULT_USER_CONFIG_FILE_PATH, _DEFAULT_LOCAL_MODE_CONFIG_FILE_PATH
  from jsonschema import exceptions
  from yaml.constructor import ConstructorError
label_desc: Use image node_id 13 for calling a global function with example usage: test_merge_behavior(get_data_dir, expected_merged_config) without return types