code: def test_sleep(workflow_start_regular_shared):
      @ray.remote
      def after_sleep(sleep_start_time, _):
          return sleep_start_time, time.time()
  
      @ray.remote
      def sleep_helper():
          return workflow.continuation(
              after_sleep.bind(time.time(), workflow.sleep(2))
          )
  
      start, end = workflow.run(sleep_helper.bind())
      duration = end - start
  
      assert 1 < duration
  
file_path: ray/python/ray/workflow/tests/test_events.py
imports: import asyncio
  import time
  import pytest
  import ray
  from ray import workflow
  from ray.tests.conftest import *
  from ray.workflow.tests import utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_sleep(workflow_start_regular_shared) and returns: sleep_start_time,  time, workflow