code: def sagemaker_session(client):
      return Session(
          sagemaker_client=client,
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/experiments/conftest.py
imports: from __future__ import absolute_import
  import unittest
  from unittest.mock import patch, MagicMock, Mock
  import pytest
  from sagemaker import Session
  from sagemaker.experiments.experiment import Experiment
  from sagemaker.experiments.run import RUN_NAME_BASE
  from sagemaker.experiments import Run
  from tests.unit.sagemaker.experiments.helpers import mock_tc_load_or_create_func, mock_trial_load_or_create_func, TEST_EXP_NAME
label_desc: Use image node_id 2 for calling a global function with example usage: sagemaker_session(client) and returns: Session