code: def parent(self):
          
          family = self.repository.get_parent_package_family(self.resource)
          return PackageFamily(family) if family else None
docs: Get the parent package family.
  
          Returns:
              `PackageFamily`.