code: def sagemaker_session():
      session = Mock(
          boto_region_name=REGION,
          default_bucket_prefix=None,
      )
      # For tests which doesn't verify config file injection, operate with empty config
      session.sagemaker_config = {}
      return session
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker.model import Model
label_desc: Use image node_id 1 for calling a global function with example usage: sagemaker_session() and returns: session