code: def test_parent_task_error() -> None:
      """Check that a child task is not run if a parent task fails."""
      parent_task1 = NoOpExecutionPlanTask(should_error=True)
      parent_task2 = NoOpExecutionPlanTask()
      leaf_task = NoOpExecutionPlanTask(
          parent_tasks=[parent_task1, parent_task2]
      )
      execution_plan = ExecutionPlan("plan0", leaf_tasks=[leaf_task])
  
      executor = SequentialPlanExecutor()
      results = executor.execute_plan(execution_plan)
      assert len(results.all_results()) == 1
      assert (
          results.get_result(parent_task1.task_id).errors[0]
          == NoOpExecutionPlanTask.EXAMPLE_ERROR
      )
  
file_path: metricflow/metricflow/test/execution/test_sequential_executor.py
imports: from __future__ import annotations
  from metricflow.execution.execution_plan import ExecutionPlan
  from metricflow.execution.executor import SequentialPlanExecutor
  from metricflow.test.execution.noop_task import NoOpExecutionPlanTask
label_desc: Use image node_id 4 for calling a global function with example usage: test_parent_task_error() without return types