code: def test_workflow_continuation(workflow_start_regular_shared):
      """Test unified behavior of returning continuation inside
      workflow and default Ray execution engine."""
  
      @ray.remote
      def h(a, b):
          return a + b
  
      @ray.remote
      def g(x):
          return workflow.continuation(h.bind(42, x))
  
      @ray.remote
      def f():
          return workflow.continuation(g.bind(1))
  
      with pytest.raises(TypeError):
          workflow.continuation(f.remote())
  
      dag = f.bind()
      assert ray.get(dag.execute()) == 43
      assert workflow.run(dag) == 43
  
file_path: ray/python/ray/workflow/tests/test_dag_to_workflow.py
imports: from ray.tests.conftest import *
  import pytest
  import ray
  from ray import workflow
  from ray.dag import InputNode
label_desc: Use image node_id 6 for calling a global function with example usage: test_workflow_continuation(workflow_start_regular_shared) and returns: unknown, workflow, workflow