def METHOD_NAME(check_init):
    from kwiver.sprokit.pipeline import scheduler
    class PythonExample(scheduler.PythonScheduler):
        def __init__(self, pipe, conf):
            scheduler.PythonScheduler.__init__(self, pipe, conf)
            self.ran_start = check_init
            self.ran_wait = check_init
            self.ran_stop = check_init
            self.ran_pause = check_init
            self.ran_resume = check_init
        def _start(self):
            self.ran_start = True
        def _wait(self):
            self.ran_wait = True
        def _stop(self):
            self.ran_stop = True
        def _pause(self):
            self.ran_pause = True
        def _resume(self):
            self.ran_resume = True
        def __del__(self):
            if not self.ran_start:
                test_error("start override was not called")
            if not self.ran_wait:
                test_error("wait override was not called")
            if not self.ran_stop:
                test_error("stop override was not called")
            if not self.ran_pause:
                test_error("pause override was not called")
            if not self.ran_resume:
                test_error("resume override was not called")
    return PythonExample