code: def sagemaker_session():
      boto_mock = Mock(name="boto_session", region_name=REGION)
      session_mock = MagicMock(
          name="sagemaker_session",
          boto_session=boto_mock,
          boto_region_name=REGION,
          config=None,
          local_mode=False,
          settings=SessionSettings(),
          default_bucket_prefix=None,
      )
      session_mock.default_bucket = Mock(
          name="default_bucket", return_value=BUCKET_NAME
      )
  
      session_mock.upload_data = Mock(
          name="upload_data", return_value=MOCKED_S3_URI
      )
      session_mock.download_data = Mock(name="download_data")
      session_mock.expand_role.return_value = ROLE
      # For tests which doesn't verify config file injection, operate with empty config
      session_mock.sagemaker_config = {}
      return session_mock
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/huggingface/test_processing.py
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch, MagicMock
  from sagemaker.huggingface.processing import HuggingFaceProcessor
  from sagemaker.fw_utils import UploadedCode
  from sagemaker.session_settings import SessionSettings
  from .huggingface_utils import get_full_gpu_image_uri, GPU_INSTANCE_TYPE, REGION
label_desc: Use image node_id 2 for calling a global function with example usage: sagemaker_session() and returns: session_mock