code: def test_invalid_step_retry_policy():
      try:
          StepRetryPolicy(
              exception_types=[
                  SageMakerJobExceptionTypeEnum.INTERNAL_ERROR
              ],
              interval_seconds=5,
              max_attempts=3,
          )
          assert False
      except Exception:
          assert True
  
imports: from __future__ import absolute_import
  from sagemaker.workflow.retry import RetryPolicy, StepRetryPolicy, SageMakerJobStepRetryPolicy, StepExceptionTypeEnum, SageMakerJobExceptionTypeEnum
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_step_retry_policy() without return types