'Generates the :class:`NodeImage` class.'

def _to_nodeimage(self, template, driver, repo):

    identifier = template.findtext('id')
    name = template.findtext('name')
    url = get_href(template, 'edit')
    hdreqd = template.findtext('hdRequired')
    extra = {'repo': repo, 'url': url, 'hdrequired': hdreqd}
    return NodeImage(identifier, name, driver, extra)
