def METHOD_NAME(self, args, in_capture, out_capture, err_capture):
    save_stdin = sys.stdin
    save_stdout = sys.stdout
    save_stderr = sys.stderr
    sys.stdin = in_capture
    sys.stdout = out_capture
    sys.stderr = err_capture
    try:
        return main.main("lib2to3.fixes", args)
    finally:
        sys.stdin = save_stdin
        sys.stdout = save_stdout
        sys.stderr = save_stderr