code: def test_condition_step_substep_and_step_outside_sharing_common_dependency():
      step_0 = CustomStep(name="custom-step-0")
      step_1 = CustomStep(
          name="custom-step-1",
      )
      step_out = CustomStep(
          name="custom-step-out",
          input_data=[step_1.properties.OutputDataConfig.S3OutputPath],
      )
      step_in = CustomStep(
          name="custom-step-in",
          input_data=[
              step_1.properties.OutputDataConfig.S3OutputPath,
          ],
      )
  
      condition_step = ConditionStep(
          name="condition-step",
          conditions=[
              ConditionEquals(
                  left=step_0.properties.TrainingJobStatus,
                  right="Completed",
              )
          ],
          else_steps=[step_in],
      )
  
      compiler = StepsCompiler(
          pipeline_name="test-pipeline",
          sagemaker_session=None,
          pipeline_definition_config=None,
          steps=[condition_step, step_out],
      )
      compiled_steps = compiler.build()
      assert list_to_request(compiled_steps) == [
          {
              "Name": "condition-step",
              "Type": "Condition",
              "Arguments": {
                  "Conditions": [
                      {
                          "Type": "Equals",
                          "LeftValue": step_0.properties.TrainingJobStatus,
                          "RightValue": "Completed",
                      }
                  ],
                  "IfSteps": [],
                  "ElseSteps": [
                      {
                          "Name": "custom-step-in",
                          "Type": "Training",
                          "Arguments": {
                              "Input": [
                                  step_1.properties.OutputDataConfig.S3OutputPath,
                              ],
                              "Output": "s3://bucket/test-pipeline/custom-step-in",
                          },
                      },
                  ],
              },
          },
          {
              "Name": "custom-step-out",
              "Type": "Training",
              "Arguments": {
                  "Input": [
                      step_1.properties.OutputDataConfig.S3OutputPath,
                  ],
                  "Output": "s3://bucket/test-pipeline/custom-step-out",
              },
          },
          {
              "Name": "custom-step-0",
              "Type": "Training",
              "Arguments": {
                  "Output": "s3://bucket/test-pipeline/custom-step-0",
              },
          },
          {
              "Name": "custom-step-1",
              "Type": "Training",
              "Arguments": {
                  "Output": "s3://bucket/test-pipeline/custom-step-1",
              },
          },
      ]
  
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 8 for calling a global function with example usage: test_condition_step_substep_and_step_outside_sharing_common_dependency() without return types