<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_task(self, key):
 """Get a scheduled task, or none"""

        res, pk = key
        jobs, lock = self._jobs
        with lock:
            return jobs[res].get(pk)