code: def sagemaker_session():
      return Mock()
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/remote_function/test_errors.py
imports: from __future__ import absolute_import
  import pytest
  import errno
  from mock import patch, Mock, mock_open
  from sagemaker.remote_function.errors import SerializationError, handle_error
label_desc: Use image node_id 1 for calling a global function with example usage: sagemaker_session() and returns: Mock