code: def test_get_named_task_output_finished(
      workflow_start_regular, tmp_path
  ):
      @ray.remote
      def double(v):
          return 2 * v
  
      # Get the result from named task after workflow finished
      assert 4 == workflow.run(
          double.options(**workflow.options(task_id="outer")).bind(
              double.options(**workflow.options(task_id="inner")).bind(
                  1
              )
          ),
          workflow_id="double",
      )
      assert workflow.get_output("double", task_id="inner") == 2
      assert workflow.get_output("double", task_id="outer") == 4
  
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 9 for calling a global function with example usage: test_get_named_task_output_finished(workflow_start_regular, tmp_path) and returns: unknown