code: def is_async_call(func):
      '''inspect.iscoroutinefunction that looks through partials.'''
      while isinstance(func, partial):
          func = func.func
      return inspect.iscoroutinefunction(funcf is_async_call(func):
      '''inspect.iscoroutinefunction that looks through partials.'''
      while isinstance(func, partial):
          func = func.func
      return inspect.iscoroutinefunction(func)
docs: inspect.iscoroutinefunction that looks through partials.