code: def test_serve_settings_with_config_file_overridden(self, session):
      session().sagemaker_config = load_sagemaker_config(
          additional_config_paths=[
              os.path.join(DATA_DIR, "serve_resources")
          ]
      )
      serve_settings = _ServeSettings(
          role_arn=ROLE_ARN,
          s3_model_data_url=S3_MODEL_DATA_URI,
          instance_type=INSTANCE_TYPE,
          env_vars=ENV_VAR,
      )
  
      self.assertEqual(serve_settings.role_arn, ROLE_ARN)
      self.assertEqual(
          serve_settings.s3_model_data_url, S3_MODEL_DATA_URI
      )
      self.assertEqual(serve_settings.instance_type, INSTANCE_TYPE)
      self.assertTrue("key" in serve_settings.env_vars)
      self.assertEqual(serve_settings.env_vars.get("key"), "value")
      self.assertTrue("EnvVarKey" not in serve_settings.env_vars)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/serve/builder/test_serve_settings.py
imports: from __future__ import absolute_import
  from unittest.mock import Mock, patch
  from unittest import TestCase
  import os
  from tests.unit import DATA_DIR
  from sagemaker.config import load_sagemaker_config
  from sagemaker.session_settings import SessionSettings
  from sagemaker.serve.builder.serve_settings import _ServeSettings
label_desc: Use image node_id 2 for calling the ServeSettingsTest obj's underlying member method code with example usage: obj.test_serve_settings_with_config_file_overridden(session) without return types