code: def sagemaker_session_mock():
      session_mock = Mock(
          Session, sagemaker_client=Mock(), boto_session=Mock()
      )
      session_mock.local_mode = False
      session_mock._append_sagemaker_config_tags = Mock(
          name="_append_sagemaker_config_tags",
          side_effect=lambda tags, config_path_to_tags: tags,
      )
      session_mock.sagemaker_client.describe_pipeline = Mock(
          return_value={
              "PipelineArn": f"{PIPELINE_ARN}",
              "CreationTime": datetime.now(),
          }
      )
      session_mock.sagemaker_config = {
          "SchemaVersion": "1.0",
          "SageMaker": {"Pipeline": {"RoleArn": EXECUTION_ROLE_ARN}},
      }
      return session_mock
  
imports: from __future__ import absolute_import
  from datetime import datetime
  import pytest
  import pytz
  from mock.mock import ANY
  from sagemaker.workflow.parameters import ParameterInteger, ParameterFloat, ParameterBoolean
  from sagemaker import Session
  from sagemaker.workflow import ParameterString
  from sagemaker.workflow._event_bridge_client_helper import EXECUTION_TIME_PIPELINE_PARAMETER_FORMAT
  from sagemaker.workflow.pipeline import Pipeline
  from mock import Mock, patch
  from sagemaker.workflow.triggers import PipelineSchedule, validate_default_parameters_for_schedules
  from tests.unit.sagemaker.workflow.helpers import CustomStep
label_desc: Use image node_id 2 for calling a global function with example usage: sagemaker_session_mock() and returns: session_mock