code: def test_is_async_func():
      def f():
          return 1
  
      def f_gen():
          yield 1
  
      async def g():
          return 1
  
      async def g_gen():
          yield 1
  
      assert is_async_func(f) is False
      assert is_async_func(f_gen) is False
      assert is_async_func(g) is True
      assert is_async_func(g_gen) is True
  
imports: import asyncio
  import concurrent.futures
  import sys
  import time
  import numpy
  import pytest
  import ray
  from ray._private.async_compat import is_async_func
  from ray._private.test_utils import wait_for_condition
  from ray._private.utils import get_or_create_event_loop, run_background_task, background_tasks
label_desc: Use image node_id 3 for calling a global function with example usage: test_is_async_func() and returns: int, int