code: def mock_session():
      return Mock()
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/remote_function/test_invoke_function.py
imports: from __future__ import absolute_import
  import os
  import pytest
  from mock import patch, Mock, ANY
  from sagemaker.remote_function import invoke_function
  from sagemaker.remote_function.errors import SerializationError
  from sagemaker.remote_function.core.pipeline_variables import Context
  from sagemaker.utils import sagemaker_timestamp
label_desc: Use image node_id 4 for calling a global function with example usage: mock_session() and returns: Mock