def is_scheduled(self, task_name):
        """ Returns whether a given task is supposed to run this frame """
        self._check_missing_schedule(task_name)
        return task_name in self._tasks[self._frame_index]
 Returns whether a given task is supposed to run this frame 
metadrive/render_pipeline/rpcore/util/task_scheduler.py