def get_resource_from_handle(self, resource_handle, verify_repo=True):
if verify_repo:<EOL><INDENT>if resource_handle.variables.get("<STR_LIT>") != self.name():<EOL><INDENT>raise ResourceError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>% (resource_handle.variables["<STR_LIT>"],<EOL>self.name()))<EOL><DEDENT>if resource_handle.variables.get("<STR_LIT:location>") != self.location:<EOL><INDENT>raise ResourceError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>% (resource_handle.variables["<STR_LIT:location>"],<EOL>self.location))<EOL><DEDENT><DEDENT>resource = self.pool.get_resource_from_handle(resource_handle)<EOL>resource._repository = self<EOL>return resource<EOL>
Get a resource.

        Args:
            resource_handle (`ResourceHandle`): Handle of the resource.

        Returns:
            `PackageRepositoryResource` instance.