code: def test_lambda_object_with_no_name_and_arn_error():
      with pytest.raises(ValueError) as error:
          lambda_helper.Lambda(
              execution_role_arn=EXECUTION_ROLE,
              script=SCRIPT,
              handler=HANDLER,
              session=sagemaker_session,
          )
      assert (
          "Either function_arn or function_name must be provided"
          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 6 for calling a global function with example usage: test_lambda_object_with_no_name_and_arn_error() without return types