

def get_author(self):
    tree = Tree()
    with tree.node('author', rating='<b>5/6 Stars</b>') as author:
        author.node('name', 'Terry Pratchett')
        author.node('genere', 'Fantasy/Comedy')
        author.node('country', abbreviation='UK')
        author.node('living')
        with author.node('novels', count=2) as novels:
            novels.node('novel', 'Small Gods', year=1992)
            novels.node('novel', 'The Fifth Elephant', year=1999)
            with novels.node('shorts', count=2) as shorts:
                shorts.node('short', 'Short Story 1')
                shorts.node('short', 'Short Story 2')
    return tree

dataset/ETHPy150Open bigjason/datatree/datatree/tests/test_xmlrenderer.py test_XmlRenderer.get_author/original