code: def test_upsert_lambda_happycase2(sagemaker_session):
      lambda_obj = lambda_helper.Lambda(
          function_name=FUNCTION_NAME,
          execution_role_arn=EXECUTION_ROLE,
          script=SCRIPT,
          handler=HANDLER,
          session=sagemaker_session,
      )
  
      sagemaker_session.lambda_client.create_function.side_effect = (
          ClientError(
              {
                  "Error": {
                      "Code": "ResourceConflictException",
                      "Message": "Lambda already exists",
                  }
              },
              "CreateFunction",
          )
      )
  
      lambda_obj.upsert()
  
      sagemaker_session.lambda_client.update_function_code.assert_called_once_with(
          FunctionName=FUNCTION_NAME, ZipFile=ZIPPED_CODE
      )
  
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 23 for calling a global function with example usage: test_upsert_lambda_happycase2(sagemaker_session) without return types