code: def isfunc(x):
      
      return any([
          inspect.isfunction(x) and not asyncio.iscoroutinefunction(x),
          inspect.ismethod(x) and not asyncio.iscoroutinefunction(x)
      ])
docs: Returns `True` if the given value is a function or method object.
  
      Arguments:
          x (mixed): value to check.
  
      Returns:
          bool