code: def test_get_output_2(workflow_start_regular, tmp_path):
      lock_path = str(tmp_path / "lock")
      lock = FileLock(lock_path)
  
      @ray.remote
      def simple(v):
          with FileLock(lock_path):
              return v
  
      lock.acquire()
      obj = workflow.run_async(simple.bind(0), workflow_id="simple")
      obj2 = workflow.get_output_async("simple")
      lock.release()
      assert ray.get([obj, obj2]) == [0, 0]
  
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 3 for calling a global function with example usage: test_get_output_2(workflow_start_regular, tmp_path) and returns: v