Generator, iterator, p_wrapper decorator, and timing context manager