code: def sagemaker_session():
      boto_mock = Mock(name="boto_session", region_name=REGION)
      sms = Mock(
          name="sagemaker_session",
          boto_session=boto_mock,
          boto_region_name=REGION,
          config=None,
          local_mode=False,
          s3_client=None,
          s3_resource=None,
          settings=SessionSettings(),
          default_bucket_prefix=None,
      )
      sms.default_bucket = Mock(
          name="default_bucket", return_value=BUCKET_NAME
      )
      # For tests which doesn't verify config file injection, operate with empty config
      sms.sagemaker_config = {}
      return sms
  
imports: from __future__ import absolute_import
  import os
  import subprocess
  from sagemaker.model import FrameworkModel
  from sagemaker.predictor import Predictor
  import pytest
  from mock import MagicMock, Mock, patch
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 1 for calling a global function with example usage: sagemaker_session() and returns: sms