code: def test_start_local_pipeline_with_unsupported_step_type(
      sagemaker_local_session,
  ):
      mock_lambda_func = Mock()
      mock_lambda_func.update.return_value = {
          "FunctionArn": "function_arn"
      }
      step = LambdaStep(
          name="MyLambdaStep", lambda_func=mock_lambda_func
      )
      pipeline = Pipeline(
          name="MyPipeline",
          parameters=[],
          steps=[step],
          sagemaker_session=sagemaker_local_session,
      )
      local_pipeline = sagemaker.local.entities._LocalPipeline(pipeline)
  
      with pytest.raises(ClientError) as e:
          local_pipeline.start()
      assert (
          f"Step type {step.step_type.value} is not supported in local mode."
          in str(e.value)
      )
  
imports: from __future__ import absolute_import
  import os
  import pytest
  from mock import patch, Mock
  from botocore.exceptions import ClientError
  import sagemaker.local
  from sagemaker.workflow.parameters import ParameterString
  from sagemaker.workflow.pipeline import Pipeline
  from sagemaker.workflow.lambda_step import LambdaStep
  from tests.unit.sagemaker.workflow.helpers import CustomStep
label_desc: Use image node_id 11 for calling a global function with example usage: test_start_local_pipeline_with_unsupported_step_type(sagemaker_local_session) without return types