code: def expected_merged_config(get_data_dir):
      expected_merged_config_file_path = os.path.join(
          get_data_dir, "expected_output_config_after_merge.yaml"
      )
      return yaml.safe_load(
          open(expected_merged_config_file_path, "r").read()
      )
  
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 2 for calling a global function with example usage: expected_merged_config(get_data_dir) and returns: yaml