code: def test_lambda_object_both_script_and_code_dir_error_with_name():
      with pytest.raises(ValueError) as error:
          lambda_helper.Lambda(
              function_name=FUNCTION_NAME,
              execution_role_arn=EXECUTION_ROLE,
              script=SCRIPT,
              zipped_code_dir=ZIPPED_CODE_DIR,
              handler=HANDLER,
              session=sagemaker_session,
          )
      assert (
          "Provide either script or zipped_code_dir, not both."
          in str(error)
      )
  
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 8 for calling a global function with example usage: test_lambda_object_both_script_and_code_dir_error_with_name() without return types