code: def _get_lambda_client(session):
      """Method to get a boto3 lambda client.
  
      Returns: a lambda client.
      """
      sagemaker_session = session or Session()
      if sagemaker_session.lambda_client is None:
          lambda_client = sagemaker_session.boto_session.client(
              "lambda", region_name=sagemaker_session.boto_region_name
          )
      else:
          lambda_client = sagemaker_session.lambda_client
      return lambda_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 2 for calling a global function with example usage: _get_lambda_client(session) and returns: lambda_client