code: def test_condition_step_depends_on_step_collection():
      step1 = CustomStep(name="MyStep1")
      step2 = CustomStep(name="MyStep2", input_data=step1.properties)
      step_collection = StepCollection(
          name="MyStepCollection", steps=[step1, step2]
      )
      cond_step = ConditionStep(
          name="MyConditionStep",
          depends_on=[step_collection],
          conditions=[ConditionEquals(left=2, right=1)],
          if_steps=[],
          else_steps=[],
      )
      pipeline = Pipeline(
          name="MyPipeline",
          steps=[step_collection, cond_step],
      )
      step_list = json.loads(pipeline.definition())["Steps"]
      assert len(step_list) == 3
      for step in step_list:
          if step["Name"] != "MyConditionStep":
              continue
          assert step == {
              "Name": "MyConditionStep",
              "Type": "Condition",
              "DependsOn": ["MyStep1", "MyStep2"],
              "Arguments": {
                  "Conditions": [
                      {
                          "Type": "Equals",
                          "LeftValue": 2,
                          "RightValue": 1,
                      },
                  ],
                  "IfSteps": [],
                  "ElseSteps": [],
              },
          }
      adjacency_list = PipelineGraph.from_pipeline(
          pipeline
      ).adjacency_list
      assert ordered(adjacency_list) == ordered(
          [
              ("MyConditionStep", []),
              ("MyStep1", ["MyConditionStep", "MyStep2"]),
              ("MyStep2", ["MyConditionStep"]),
          ]
      )
  
imports: from __future__ import absolute_import
  import json
  import os
  import tempfile
  import shutil
  import pytest
  from sagemaker.drift_check_baselines import DriftCheckBaselines
  from sagemaker.workflow._utils import REPACK_SCRIPT_LAUNCHER
  from sagemaker.workflow.condition_step import ConditionStep
  from sagemaker.workflow.conditions import ConditionEquals
  from sagemaker.workflow.model_step import ModelStep, _CREATE_MODEL_NAME_BASE, _REPACK_MODEL_NAME_BASE
  from sagemaker.workflow.parameters import ParameterString
  from sagemaker.workflow.pipeline import Pipeline, PipelineGraph
  from sagemaker.workflow.utilities import list_to_request
  from tests.unit import DATA_DIR
  from sagemaker import PipelineModel
  from sagemaker.estimator import Estimator
  from sagemaker.model import Model, FrameworkModel
  from sagemaker.tensorflow import TensorFlow
  from sagemaker.inputs import CreateModelInput, TransformInput
  from sagemaker.model_metrics import MetricsSource, ModelMetrics
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.steps import CreateModelStep
  from sagemaker.workflow.step_collections import EstimatorTransformer, StepCollection, RegisterModel
  from sagemaker.workflow.retry import StepRetryPolicy, StepExceptionTypeEnum
  from tests.unit.sagemaker.workflow.helpers import ordered, CustomStep
  from tests.unit.sagemaker.workflow.conftest import IMAGE_URI, ROLE, BUCKET, REGION
label_desc: Use image node_id 13 for calling a global function with example usage: test_condition_step_depends_on_step_collection() without return types