<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def schedule(self, task):
 """Schedules a new Task in the PoolManager."""

        self.task_manager.register(task)
        self.worker_manager.dispatch(task)