def _sleep_generator(durations):
    """The profile_iterable method needs an iterable in which we can ensure that we're properly timing how long it
    takes to call __next__"""
    for duration in durations:
        time.sleep(duration)
        yield duration
The profile_iterable method needs an iterable in which we can ensure that we're properly timing how long it
    takes to call __next__
tests/tests_pytorch/profilers/test_profiler.py