code: def sagemaker_session(boto_session, client):
      # ideally this would mock Session instead of instantiating it
      # most unit tests do mock the session correctly
      session = sagemaker.session.Session(
          boto_session=boto_session,
          sagemaker_client=client,
          sagemaker_runtime_client=client,
          default_bucket=_DEFAULT_BUCKET,
          sagemaker_metrics_client=client,
      )
      return session
  
imports: from __future__ import absolute_import
  import pytest
  import sagemaker
  from mock import Mock, PropertyMock
label_desc: Use image node_id 3 for calling a global function with example usage: sagemaker_session(boto_session, client) and returns: session