<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 package family. Returns: `PackageFamily`. """

        family = self.repository.get_parent_package_family(self.resource)
        return PackageFamily(family) if family else None