'Return a string containing a pretty-printed representation of
the given verbnet class\'s thematic roles.
:param vnclass: A verbnet class identifier; or an ElementTree
containing the xml contents of a verbnet class.'

def pprint_themroles(self, vnclass, indent=u''):

    if isinstance(vnclass, string_types):
        vnclass = self.vnclass(vnclass)
    pieces = []
    for themrole in vnclass.findall(u'THEMROLES/THEMROLE'):
        piece = ((indent + u'*    ') + themrole.get(u'type'))
        modifiers = [(u'%(Value)s%(type)s' % restr.attrib) for restr in themrole.findall(u'SELRESTRS/SELRESTR')]
        if modifiers:
            piece += (u'[%s]' % u'    '.join(modifiers))
        pieces.append(piece)
    return u'\n'.join(pieces)
