def get_resource_from_handle(self, resource_handle):
repo_type = resource_handle.get("<STR_LIT>")<EOL>location = resource_handle.get("<STR_LIT:location>")<EOL>if not (repo_type and location):<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>path = "<STR_LIT>" % (repo_type, location)<EOL>repo = self.get_repository(path)<EOL>resource = repo.get_resource_from_handle(resource_handle)<EOL>return resource<EOL>
Get a resource.

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

        Returns:
            `PackageRepositoryResource` instance.