code: def test_wf_run(workflow_start_regular_shared, tmp_path):
      counter = tmp_path / "counter"
      counter.write_text("0")
  
      @ray.remote
      def f():
          v = int(counter.read_text()) + 1
          counter.write_text(str(v))
  
      workflow.run(f.bind(), workflow_id="abc")
      assert counter.read_text() == "1"
      # This will not rerun the job from beginning
      workflow.run(f.bind(), workflow_id="abc")
      assert counter.read_text() == "1"
  
file_path: ray/python/ray/workflow/tests/test_basic_workflows_3.py
imports: import pytest
  from filelock import FileLock
  from pathlib import Path
  import ray
  from ray import workflow
  from ray.tests.conftest import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_wf_run(workflow_start_regular_shared, tmp_path) without return types