code: def is_async_func(func):
      """Return True if the function is an async or async generator method."""
      return inspect.iscoroutinefunction(
          func
      ) or inspect.isasyncgenfunction(func)
  
imports: import asyncio
  import inspect
label_desc: Use image node_id 3 for calling a global function with example usage: is_async_func(func) and returns: unknown