code: def test_condition_step_if_else_branch_sharing_common_dependency():
      step_0 = CustomStep(name="custom-step-0")
      step_1 = CustomStep(name="custom-step-1", depends_on=[step_0])
      step_2 = CustomStep(name="custom-step-2", depends_on=[step_0])
  
      condition_step = ConditionStep(
          name="condition-step",
          conditions=[ConditionEquals(left=1, right=1)],
          if_steps=[
              step_1,
          ],
          else_steps=[
              step_2,
          ],
      )
  
      compiled_steps = StepsCompiler(
          pipeline_name="test-pipeline",
          sagemaker_session=None,
          pipeline_definition_config=None,
          steps=[condition_step],
      ).build()
  
      assert list_to_request(compiled_steps) == [
          {
              "Arguments": {
                  "Conditions": [
                      {
                          "LeftValue": 1,
                          "RightValue": 1,
                          "Type": "Equals",
                      },
                  ],
                  "ElseSteps": [
                      {
                          "Arguments": {
                              "Output": "s3://bucket/test-pipeline/custom-step-2"
                          },
                          "Name": "custom-step-2",
                          "Type": "Training",
                          "DependsOn": ["custom-step-0"],
                      },
                  ],
                  "IfSteps": [
                      {
                          "Arguments": {
                              "Output": "s3://bucket/test-pipeline/custom-step-1"
                          },
                          "Name": "custom-step-1",
                          "Type": "Training",
                          "DependsOn": ["custom-step-0"],
                      },
                  ],
              },
              "Name": "condition-step",
              "Type": "Condition",
          },
          {
              "Arguments": {
                  "Output": "s3://bucket/test-pipeline/custom-step-0"
              },
              "Name": "custom-step-0",
              "Type": "Training",
          },
      ]
  
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.workflow.steps import Step, StepTypeEnum
  from sagemaker.workflow.function_step import step
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.condition_step import ConditionStep
  from sagemaker.workflow.conditions import ConditionEquals
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.pipeline_definition_config import PipelineDefinitionConfig
  from sagemaker.workflow._steps_compiler import StepsCompiler
  from sagemaker.workflow.utilities import load_step_compilation_context, list_to_request
label_desc: Use image node_id 11 for calling a global function with example usage: test_condition_step_if_else_branch_sharing_common_dependency() without return types