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.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/wrangler/test_processing.py
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, MagicMock
  from sagemaker.session_settings import SessionSettings
  from sagemaker.wrangler.processing import DataWranglerProcessor
  from sagemaker.processing import ProcessingInput
label_desc: Use image node_id 1 for calling a global function with example usage: sagemaker_session() and returns: session_mock