code: def pipeline_session_mock(boto_session_mock, client_mock):
      return PipelineSession(
          boto_session=boto_session_mock,
          sagemaker_client=client_mock,
          default_bucket=_BUCKET,
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, PropertyMock
  from sagemaker import Model
  from sagemaker.workflow.pipeline_context import PipelineSession
  from sagemaker.workflow import is_pipeline_variable, is_pipeline_parameter_string
  from sagemaker.workflow.parameters import ParameterString, ParameterInteger, ParameterBoolean, ParameterFloat
  from sagemaker.workflow.functions import Join, JsonGet
  from tests.unit.sagemaker.workflow.helpers import CustomStep
  from tests.unit import DATA_DIR, SAGEMAKER_CONFIG_SESSION
label_desc: Use image node_id 3 for calling a global function with example usage: pipeline_session_mock(boto_session_mock, client_mock) and returns: PipelineSession