def get_package(self):
<EOL>package_data = self._get_data()<EOL>package_data = package_schema.validate(package_data)<EOL>if "<STR_LIT>" in package_data:<EOL><INDENT>ver = package_data.pop("<STR_LIT>")<EOL>if _rez_Version < ver:<EOL><INDENT>raise PackageMetadataError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % (ver, _rez_Version))<EOL><DEDENT><DEDENT>version_str = package_data.get("<STR_LIT:version>") or "<STR_LIT>"<EOL>repo_data = {self.name: {version_str: package_data}}<EOL>repo = create_memory_package_repository(repo_data)<EOL>family_resource = repo.get_package_family(self.name)<EOL>it = repo.iter_packages(family_resource)<EOL>package_resource = it.next()<EOL>package = self.package_cls(package_resource)<EOL>package.validate_data()<EOL>return package<EOL>
Create the analogous package.

        Returns:
            `Package` object.