code: def session():
      boto_mock = Mock(name=BOTO_SESSION_NAME, region_name=REGION)
      sms = Mock(
          name=SAGEMAKER_SESSION_NAME,
          boto_session=boto_mock,
          boto_region_name=REGION,
          config=None,
          local_mode=True,
          settings=SessionSettings(),
      )
      sms.default_bucket = Mock(
          name=DEFAULT_BUCKET_NAME, 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 time
  import pytest
  from mock import Mock, patch, call
  import stopit
  from botocore.exceptions import ClientError
  from sagemaker.session_settings import SessionSettings
  from tests.integ.timeout import timeout, timeout_and_delete_endpoint_by_name, timeout_and_delete_model_with_transformer
label_desc: Use image node_id 1 for calling a global function with example usage: session() and returns: sms