code: def test_pipeline_graph_acyclic(sagemaker_session_mock):
      step_a = CustomStep(name="stepA")
      step_b = CustomStep(name="stepB")
      step_c = CustomStep(name="stepC", depends_on=[step_a])
      step_d = CustomStep(name="stepD", depends_on=[step_c])
      step_e = CustomStep(
          name="stepE", depends_on=[step_a, step_b, step_d]
      )
  
      pipeline = Pipeline(
          name="MyPipeline",
          steps=[step_a, step_b, step_c, step_d, step_e],
          sagemaker_session=sagemaker_session_mock,
      )
  
      pipeline_graph = PipelineGraph.from_pipeline(pipeline)
      adjacency_list = pipeline_graph.adjacency_list
      assert ordered(adjacency_list) == ordered(
          {
              "stepA": ["stepC", "stepE"],
              "stepB": ["stepE"],
              "stepC": ["stepD"],
              "stepD": ["stepE"],
              "stepE": [],
          }
      )
      _verify_pipeline_graph_traversal(pipeline_graph)
  
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.remote_function.job import _JobSettings
  from sagemaker.workflow.function_step import step
  from sagemaker.workflow.step_outputs import get_step
  from sagemaker.workflow.pipeline import Pipeline, PipelineGraph
  from sagemaker.workflow.condition_step import ConditionStep
  from sagemaker.workflow.conditions import ConditionEquals, ConditionIn, ConditionNot, ConditionOr, ConditionGreaterThan
  from sagemaker.workflow.execution_variables import ExecutionVariables
  from sagemaker.workflow.parameters import ParameterInteger, ParameterString
  from sagemaker.workflow._steps_compiler import CompiledStep
  from tests.unit.sagemaker.workflow.helpers import ordered, CustomStep, CustomStepCollection
label_desc: Use image node_id 10 for calling a global function with example usage: test_pipeline_graph_acyclic(sagemaker_session_mock) without return types