@functools.wraps(f)
async def _wrapper(self, *args, **kwargs):
    result = (await f(self, *args, **kwargs))
    if (result.__class__ == pymongo_class):
        return self.wrap(result)
    else:
        return result
@functools.wraps(f)
async def _wrapper(self, *args, **kwargs):
    result = (await f(self, *args, **kwargs))
    if (result.__class__ == pymongo_class):
        return self.wrap(result)
    else:
        return result