code: def test_valid_step_retry_policy():
      retry_policy = StepRetryPolicy(
          exception_types=[
              StepExceptionTypeEnum.SERVICE_FAULT,
              StepExceptionTypeEnum.THROTTLING,
          ],
          interval_seconds=5,
          max_attempts=3,
      )
      assert retry_policy.to_request() == {
          "ExceptionType": ["Step.SERVICE_FAULT", "Step.THROTTLING"],
          "IntervalSeconds": 5,
          "BackoffRate": 2.0,
          "MaxAttempts": 3,
      }
  
      retry_policy = StepRetryPolicy(
          exception_types=[
              StepExceptionTypeEnum.SERVICE_FAULT,
              StepExceptionTypeEnum.THROTTLING,
          ],
          interval_seconds=5,
          backoff_rate=2.0,
          expire_after_mins=30,
      )
      assert retry_policy.to_request() == {
          "ExceptionType": ["Step.SERVICE_FAULT", "Step.THROTTLING"],
          "IntervalSeconds": 5,
          "BackoffRate": 2.0,
          "ExpireAfterMin": 30,
      }
  
imports: from __future__ import absolute_import
  from sagemaker.workflow.retry import RetryPolicy, StepRetryPolicy, SageMakerJobStepRetryPolicy, StepExceptionTypeEnum, SageMakerJobExceptionTypeEnum
label_desc: Use image node_id 1 for calling a global function with example usage: test_valid_step_retry_policy() without return types