class_docstr: Class used to compile steps. Should be instantiated once per compilation.
class_docstr_tok: ["Class","used","to","compile","steps",".","Should","be","instantiated","once","per","compilation","."]
docstr: Build a condition step.
docstr_tok: ["Build","a","condition","step","."]
code: def _build_condition_step(
      self, condition_step: ConditionStep
  ) -> ConditionStep:
      """Build a condition step."""
      depends_on, upstream_steps_in_args = self._get_upstream_steps(
          condition_step, condition_step.step_only_arguments
      )
      self._push_to_build_queue(depends_on)
      self._push_to_build_queue(upstream_steps_in_args)
  
      compiled_condition_step = ConditionStep(
          name=condition_step.name,
          display_name=condition_step.display_name,
          description=condition_step.description,
          conditions=list(condition_step.conditions),
          if_steps=self._build_steps(condition_step.if_steps),
          else_steps=self._build_steps(condition_step.else_steps),
          depends_on=[step.name for step in depends_on],
      )
  
      return compiled_condition_step
  
imports: from __future__ import absolute_import
  import logging
  import secrets
  from typing import Sequence, Union, List
  from sagemaker.workflow.entities import RequestType
  from sagemaker.workflow.function_step import _FunctionStep
  from sagemaker.workflow.steps import Step, StepTypeEnum, PropertyFile
  from sagemaker.workflow.condition_step import ConditionStep
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.step_outputs import get_step
  from sagemaker.workflow.pipeline_definition_config import PipelineDefinitionConfig
  from sagemaker.workflow.step_outputs import StepOutput
  from sagemaker.workflow.utilities import step_compilation_context_manager, get_config_hash, get_code_hash
  from sagemaker.utils import sagemaker_timestamp
label_desc: Use image node_id 10 for calling the StepsCompiler obj's underlying member method code with example usage: obj._build_condition_step(condition_step) and returns: compiled_condition_step