code: def test_same_function_step_built_for_different_pipelines(
      sagemaker_session_mock,
  ):
      @step(
          name="step_name",
          instance_type="ml.m5.large",
          image_uri="test_image_uri",
      )
      def dummy():
          return 1
  
      step_output = dummy()
      cond_step = ConditionStep(
          name="MyConditionStep",
          conditions=[ConditionEquals(left=step_output, right=1)],
          if_steps=[CustomStep(name="custom-step-0")],
      )
  
      compiled_steps_1 = StepsCompiler(
          pipeline_name="test-pipeline-1",
          sagemaker_session=sagemaker_session_mock,
          pipeline_definition_config=PipelineDefinitionConfig(False),
          steps=[cond_step],
      ).build()
  
      assert "'--serialize_output_to_json', 'true'" in str(
          compiled_steps_1[1].arguments["AlgorithmSpecification"][
              "ContainerArguments"
          ]
      )
  
      compiled_steps_2 = StepsCompiler(
          pipeline_name="test-pipeline-2",
          sagemaker_session=sagemaker_session_mock,
          pipeline_definition_config=PipelineDefinitionConfig(False),
          steps=[step_output],
      ).build()
  
      assert "'--serialize_output_to_json', 'true'" not in str(
          compiled_steps_2[0].arguments["AlgorithmSpecification"][
              "ContainerArguments"
          ]
      )
  
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 17 for calling a global function with example usage: test_same_function_step_built_for_different_pipelines(sagemaker_session_mock) and returns: int