def _check_missing_schedule(self, task_name):
        """ Checks whether the given task is scheduled at some point. This can
        be used to check whether any task is missing in the task scheduler config. """
        for tasks in self._tasks:
            if task_name in tasks:
                break
        else:
            self.error("Task '" + task_name + "' is never scheduled and thus will never run!")
 Checks whether the given task is scheduled at some point. This can
        be used to check whether any task is missing in the task scheduler config. 
metadrive/render_pipeline/rpcore/util/task_scheduler.py