code: def _get_s3_client(session):
      """Method to get a boto3 s3 client.
  
      Returns: a s3 client.
      """
      sagemaker_session = session or Session()
      if sagemaker_session.s3_client is None:
          s3_client = sagemaker_session.boto_session.client(
              "s3", region_name=sagemaker_session.boto_region_name
          )
      else:
          s3_client = sagemaker_session.s3_client
      return s3_client
  
file_path: sagemaker-python-sdk/src/sagemaker/lambda_helper.py
imports: from __future__ import print_function, absolute_import
  from io import BytesIO
  import zipfile
  import time
  from botocore.exceptions import ClientError
  from sagemaker import s3
  from sagemaker.session import Session
label_desc: Use image node_id 1 for calling a global function with example usage: _get_s3_client(session) and returns: s3_client