code: def test_valid_sagemaker_job_step_retry_policy():
      retry_policy = SageMakerJobStepRetryPolicy(
          exception_types=[
              SageMakerJobExceptionTypeEnum.RESOURCE_LIMIT
          ],
          failure_reason_types=[
              SageMakerJobExceptionTypeEnum.INTERNAL_ERROR,
              SageMakerJobExceptionTypeEnum.CAPACITY_ERROR,
          ],
          interval_seconds=5,
          max_attempts=3,
      )
      assert retry_policy.to_request() == {
          "ExceptionType": [
              "SageMaker.RESOURCE_LIMIT",
              "SageMaker.JOB_INTERNAL_ERROR",
              "SageMaker.CAPACITY_ERROR",
          ],
          "IntervalSeconds": 5,
          "BackoffRate": 2.0,
          "MaxAttempts": 3,
      }
  
      retry_policy = SageMakerJobStepRetryPolicy(
          exception_types=[
              SageMakerJobExceptionTypeEnum.RESOURCE_LIMIT
          ],
          failure_reason_types=[
              SageMakerJobExceptionTypeEnum.INTERNAL_ERROR,
              SageMakerJobExceptionTypeEnum.CAPACITY_ERROR,
          ],
          interval_seconds=5,
          max_attempts=3,
      )
      assert retry_policy.to_request() == {
          "ExceptionType": [
              "SageMaker.RESOURCE_LIMIT",
              "SageMaker.JOB_INTERNAL_ERROR",
              "SageMaker.CAPACITY_ERROR",
          ],
          "IntervalSeconds": 5,
          "BackoffRate": 2.0,
          "MaxAttempts": 3,
      }
  
imports: from __future__ import absolute_import
  from sagemaker.workflow.retry import RetryPolicy, StepRetryPolicy, SageMakerJobStepRetryPolicy, StepExceptionTypeEnum, SageMakerJobExceptionTypeEnum
label_desc: Use image node_id 3 for calling a global function with example usage: test_valid_sagemaker_job_step_retry_policy() without return types