code: def boto_session(client):
      role_mock = Mock()
      type(role_mock).arn = PropertyMock(return_value="DummyRole")
  
      resource_mock = Mock()
      resource_mock.Role.return_value = role_mock
  
      session_mock = Mock(region_name="us-west-2")
      session_mock.resource.return_value = resource_mock
      session_mock.client.return_value = client
  
      return session_mock
  
imports: from __future__ import absolute_import
  import json
  import os
  import shutil
  import tempfile
  from mock import Mock, PropertyMock, call
  import pytest
  from src.sagemaker.experiments._helper import _LineageArtifactTracker, _ArtifactUploader
  from src.sagemaker.experiments._utils import resolve_artifact_name
  from src.sagemaker.session import Session
  from tests.unit import _test_default_bucket_and_prefix_combinations, DEFAULT_S3_OBJECT_KEY_PREFIX_NAME, DEFAULT_S3_BUCKET_NAME
label_desc: Use image node_id 2 for calling a global function with example usage: boto_session(client) and returns: session_mock