code: def test_serve_settings_with_config_file(self, session):
      session().sagemaker_config = load_sagemaker_config(
          additional_config_paths=[
              os.path.join(DATA_DIR, "serve_resources")
          ]
      )
      serve_settings = _ServeSettings()
  
      self.assertEqual(
          serve_settings.role_arn,
          "arn:aws:iam::123456789012:role/service-role/testing-role",
      )
  
      self.assertEqual(
          serve_settings.role_arn,
          "arn:aws:iam::123456789012:role/service-role/testing-role",
      )
      self.assertEqual(
          serve_settings.s3_model_data_url, "s3://testing-s3-bucket"
      )
      self.assertEqual(serve_settings.instance_type, "ml.m5.xlarge")
      self.assertTrue("EnvVarKey" in serve_settings.env_vars)
      self.assertEqual(
          serve_settings.env_vars.get("EnvVarKey"), "EnvVarValue"
      )
      self.assertEqual(serve_settings.telemetry_opt_out, True)
  
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 1 for calling the ServeSettingsTest obj's underlying member method code with example usage: obj.test_serve_settings_with_config_file(session) without return types