code: def test_pipeline_duplicate_step_name_in_delayed_return(
      sagemaker_session_mock, job_config
  ):
      delayed_return_1 = step(
          lambda x, y: x + y,
          name="MyStep",
          image_uri="image",
          instance_type="ml.m4.xlarge",
      )(1, 2)
  
      delayed_return_2 = step(
          lambda x, y: x - y,
          name="MyStep",
          image_uri="image",
          instance_type="ml.m4.xlarge",
      )(3, 4)
  
      get_step(delayed_return_2).add_depends_on([delayed_return_1])
  
      with pytest.raises(ValueError) as error:
          pipeline = Pipeline(
              name="MyPipeline",
              steps=[delayed_return_2],
              sagemaker_session=sagemaker_session_mock,
          )
          PipelineGraph.from_pipeline(pipeline)
      assert "Pipeline steps cannot have duplicate names." in str(
          error.value
      )
  
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 7 for calling a global function with example usage: test_pipeline_duplicate_step_name_in_delayed_return(sagemaker_session_mock, job_config) without return types