code: def pipeline_session(mock_boto_session, mock_client):
      pipeline_session = PipelineSession(
          boto_session=mock_boto_session,
          sagemaker_client=mock_client,
          default_bucket=BUCKET,
      )
      # For tests which doesn't verify config file injection, operate with empty config
  
      pipeline_session.sagemaker_config = {}
      return pipeline_session
  
imports: from __future__ import absolute_import
  from unittest.mock import Mock, PropertyMock
  import pytest
  from sagemaker.workflow.pipeline_context import PipelineSession
label_desc: Use image node_id 3 for calling a global function with example usage: pipeline_session(mock_boto_session, mock_client) and returns: pipeline_session