code: def sagemaker_session():
      boto_mock = MagicMock(name="boto_session", region_name=REGION)
      boto_mock.client("sts").get_caller_identity.return_value = {
          "Account": ACCOUNT_ID
      }
      sagemaker_session = sagemaker.Session(boto_session=boto_mock)
      sagemaker_session.boto_session.resource(
          "s3"
      ).Bucket().creation_date = None
      return sagemaker_session
  
file_path: sagemaker-python-sdk/tests/unit/test_default_bucket.py
imports: from __future__ import absolute_import
  import datetime
  import pytest
  from botocore.exceptions import ClientError
  from mock import MagicMock
  import sagemaker
label_desc: Use image node_id 2 for calling a global function with example usage: sagemaker_session() and returns: sagemaker_session