<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_task_by_id(self, id, session=None):
 """ Find task with the given record ID. """

        with self._session(session) as session:
            return session.query(TaskRecord).get(id)