<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parent(self):
 """ Get the parent category """

        if self.path:
            return Category(os.path.dirname(self.path))
        return None