[docs] [issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit