code: def mock_session():
      session = Mock()
      session.settings = SessionSettings()
      session.boto_region_name = REGION
      session.sagemaker_config = None
      session._append_sagemaker_config_tags.return_value = []
      session.default_bucket_prefix = None
  
      return session
  
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 a global function with example usage: mock_session() and returns: session