class_docstr: `ModelStep` for SageMaker Pipelines Workflows.
class_docstr_tok: ["`","ModelStep","`","for","SageMaker","Pipelines","Workflows","."]
docstr: Validate SageMakerJobStepRetryPolicy
  
  Validate that SageMakerJobStepRetryPolicy is not assigning to create/register model step.
docstr_tok: ["Validate","SageMakerJobStepRetryPolicy","Validate","that","SageMakerJobStepRetryPolicy","is","not","assigning","to","create\/register","model","step","."]
code: def _validate_sagemaker_job_step_retry_policy(self):
      """Validate SageMakerJobStepRetryPolicy
  
      Validate that SageMakerJobStepRetryPolicy is not assigning to create/register model step.
      """
      retry_policies = set(
          (self._create_model_retry_policies or [])
          + (self._register_model_retry_policies or [])
      )
      for policy in retry_policies:
          if not isinstance(policy, SageMakerJobStepRetryPolicy):
              continue
          raise ValueError(
              "SageMakerJobStepRetryPolicy is not allowed for a create/register"
              " model step. Please use StepRetryPolicy instead"
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/workflow/model_step.py
imports: from __future__ import absolute_import
  import logging
  from typing import Union, List, Dict, Optional
  from sagemaker import Model, PipelineModel, Session
  from sagemaker.workflow._utils import _RegisterModelStep, _RepackModelStep
  from sagemaker.workflow.pipeline_context import PipelineSession, _ModelStepArguments
  from sagemaker.workflow.retry import RetryPolicy, SageMakerJobStepRetryPolicy
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.steps import Step, CreateModelStep
label_desc: Use image node_id 3 for calling the ModelStep obj's underlying member method code with example usage: obj._validate_sagemaker_job_step_retry_policy() without return types