code: def test_async_function_errored(ray_start_regular_shared):
      with pytest.raises(ValueError):
  
          @ray.remote
          async def f():
              pass
  
imports: import asyncio
  import os
  import sys
  import threading
  import time
  import pytest
  import ray
  from ray._private.client_mode_hook import client_mode_should_convert
  from ray._private.test_utils import SignalActor, kill_actor_and_wait_for_failure, wait_for_condition, wait_for_pid_to_exit
label_desc: Use image node_id 9 for calling a global function with example usage: test_async_function_errored(ray_start_regular_shared) without return types