code: def sagemaker_session():
      session_mock = Mock(
          name="sagemaker_session",
          boto_region_name=REGION,
          default_bucket_prefix=None,
      )
      session_mock.sagemaker_config = {}
      return session_mock
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/tensorflow/test_estimator_init.py
imports: from __future__ import absolute_import
  from mock import Mock, patch
  from packaging import version
  import pytest
  from sagemaker.tensorflow import TensorFlow
label_desc: Use image node_id 1 for calling a global function with example usage: sagemaker_session() and returns: session_mock