async def corofunc(**local_args):
            nonlocal called
            assert local_args == args
            called += 1
def bufferedMode(self, mode = True):
        if mode is None:
            self.flush()
        self._bufferedMode = mode