code: def sagemaker_session():
      boto_mock = Mock(name="boto_session", region_name=REGION)
      session_mock = Mock(
          name="sagemaker_session",
          boto_session=boto_mock,
          boto_region_name=REGION,
          config=None,
          local_mode=False,
          default_bucket_prefix=None,
      )
      session_mock.upload_data = Mock(
          name="upload_data", return_value="s3_uri_to_uploaded_data"
      )
      session_mock.download_data = Mock(name="download_data")
      return session_mock
  
file_path: sagemaker-python-sdk/tests/unit/test_s3.py
imports: from __future__ import absolute_import
  import os
  import pytest
  from mock import Mock
  from sagemaker import s3
label_desc: Use image node_id 1 for calling a global function with example usage: sagemaker_session() and returns: session_mock