def needs_write(self):
        return len(self.buffer) > 0
:param: user is a web_api.model.User
dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/io.py/Stream.needs_write--crossover with--dataset/ETHPy150Open biicode/bii-server/user/user_service.py/UserService.register