code: def test_start_local_pipeline(
      mock_local_pipeline_executor, sagemaker_local_session
  ):
      parameter = ParameterString("MyStr", default_value="test")
      pipeline = Pipeline(
          name="MyPipeline",
          parameters=[parameter],
          steps=[CustomStep(name="MyStep", input_data=parameter)],
          sagemaker_session=sagemaker_local_session,
      )
      local_pipeline = sagemaker.local.entities._LocalPipeline(pipeline)
  
      describe_pipeline_response = local_pipeline.describe()
      assert describe_pipeline_response["PipelineArn"] == "MyPipeline"
      assert describe_pipeline_response["CreationTime"] is not None
  
      mock_executor_return_value = (
          sagemaker.local.entities._LocalPipelineExecution(
              "execution-id", pipeline
          )
      )
      mock_executor_return_value.step_execution[
          "MyStep"
      ].status = "Executing"
      mock_local_pipeline_executor.return_value = (
          mock_executor_return_value
      )
      pipeline_execution = local_pipeline.start()
  
      describe_pipeline_execution_response = (
          pipeline_execution.describe()
      )
      assert (
          describe_pipeline_execution_response["PipelineArn"]
          == "MyPipeline"
      )
      assert (
          describe_pipeline_execution_response["PipelineExecutionArn"]
          == "execution-id"
      )
      assert (
          describe_pipeline_execution_response["CreationTime"]
          is not None
      )
  
      list_steps_response = pipeline_execution.list_steps()
      assert (
          list_steps_response["PipelineExecutionSteps"][0]["StepName"]
          == "MyStep"
      )
      assert (
          list_steps_response["PipelineExecutionSteps"][0]["StepStatus"]
          == "Executing"
      )
  
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 10 for calling a global function with example usage: test_start_local_pipeline(mock_local_pipeline_executor, sagemaker_local_session) without return types