code: def test_get_named_task_output_error(
      workflow_start_regular, tmp_path
  ):
      @ray.remote
      def double(v, error):
          if error:
              raise Exception()
          return v + v
  
      # Force it to fail for the outer task
      with pytest.raises(Exception):
          workflow.run(
              double.options(**workflow.options(task_id="outer")).bind(
                  double.options(
                      **workflow.options(task_id="inner")
                  ).bind(1, False),
                  True,
              ),
              workflow_id="double",
          )
  
      # For the inner task, it should have already been executed.
      assert 2 == workflow.get_output("double", task_id="inner")
      with pytest.raises(Exception):
          workflow.get_output("double", task_id="outer")
  
file_path: ray/python/ray/workflow/tests/test_basic_workflows_2.py
imports: import pytest
  import ray
  from filelock import FileLock
  from ray._private.test_utils import SignalActor
  from ray import workflow
  from ray.tests.conftest import *
  from ray._private.test_utils import skip_flaky_core_test_premerge
label_desc: Use image node_id 11 for calling a global function with example usage: test_get_named_task_output_error(workflow_start_regular, tmp_path) and returns: unknown