def METHOD_NAME() -> Tuple[Callable, Callable]:
    buffer = []
    def __print(*args):
        for arg in args:
            buffer.append(arg)
    def __show():
        nonlocal buffer
        print("".join(buffer), flush=True, end="")
        buffer = []
    return __print, __show