This function is analogous to getgeneratorlocals(), but works for coroutine objects created by async def functions.
inspect.getcoroutinelocals(coroutine)