code: def test_upload_to_s3(s3_client):
      key = lambda_helper._upload_to_s3(
          s3_client, FUNCTION_NAME, ZIPPED_CODE_DIR, S3_BUCKET
      )
      s3_client.upload_file.assert_called_with(
          ZIPPED_CODE_DIR, S3_BUCKET, key
      )
      assert key == S3_KEY
  
imports: from __future__ import print_function, absolute_import
  import os
  import pytest
  from mock import Mock, patch
  from botocore.exceptions import ClientError
  from sagemaker import lambda_helper
label_desc: Use image node_id 29 for calling a global function with example usage: test_upload_to_s3(s3_client) without return types