<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def course(self):
 """ Course this node belongs to """

        course = self.parent
        while course.parent:
            course = course.parent
        return course