class_docstr: An executor that executes SageMaker Pipelines locally.
class_docstr_tok: ["An","executor","that","executes","SageMaker","Pipelines","locally","."]
docstr: Execute a local pipeline.
docstr_tok: ["Execute","a","local","pipeline","."]
code: def execute(self):
      """Execute a local pipeline."""
      try:
          for step in self.pipeline_dag:
              if step.name not in self._blocked_steps:
                  self._execute_step(step)
      except StepExecutionException as e:
          self.execution.update_execution_failure(
              e.step_name, e.message
          )
      else:
          self.execution.update_execution_success()
      return self.execution
  
imports: from __future__ import absolute_import
  from abc import ABC, abstractmethod
  import json
  from datetime import datetime
  from typing import Dict, List, Union
  from botocore.exceptions import ClientError
  from sagemaker.workflow.conditions import ConditionTypeEnum
  from sagemaker.workflow.function_step import DelayedReturn
  from sagemaker.workflow.steps import StepTypeEnum, Step
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.entities import PipelineVariable
  from sagemaker.workflow.parameters import Parameter
  from sagemaker.workflow.functions import Join, JsonGet, PropertyFile
  from sagemaker.workflow.properties import Properties
  from sagemaker.workflow.execution_variables import ExecutionVariable, ExecutionVariables
  from sagemaker.workflow.pipeline import PipelineGraph
  from sagemaker.local.exceptions import StepExecutionException
  from sagemaker.local.utils import get_using_dot_notation
  from sagemaker.utils import unique_name_from_base
  from sagemaker.s3 import parse_s3_url, s3_path_join
label_desc: Use image node_id 2 for calling the LocalPipelineExecutor obj's underlying member method code with example usage: obj.execute() and returns: self