code: def boto_session_mock(client_mock):
      role_mock = Mock()
      type(role_mock).arn = PropertyMock(return_value=_ROLE)
  
      resource_mock = Mock()
      resource_mock.Role.return_value = role_mock
  
      session_mock = Mock(region_name=_REGION)
      session_mock.resource.return_value = resource_mock
      session_mock.client.return_value = client_mock
  
      return session_mock
  
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 2 for calling a global function with example usage: boto_session_mock(client_mock) and returns: session_mock