<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_tasks(self):
 """Return all tasks in this project. :return: A list of all tasks in this project.class :rtype: list of :class:`pytodoist.todoist.Task` Install PyTodoist Have fun! """

        self.owner.sync()
        return [t for t in self.owner.tasks.values()
                if t.project_id == self.id]