

def _get_complex_structure(self):
    tree = Tree()
    tree.instruct('xml')
    tree.declare('DOCTYPE', __.author, __.SYSTEM, 'SomeDTD.dtd')
    with tree.node('author') as author:
        author.node('name', 'Terry Pratchett')
        novels.node('genre', 'Fantasy/Comedy')
        author.comment('Only 2 books listed')
        with author.node('novels', count=2) as novels:
            novels.node('novel', 'Small Gods', year=1992)
            novels.node('novel', 'The Fifth Elephant', year=1999)
    return tree

dataset/ETHPy150Open bigjason/datatree/datatree/tests/test_xmlrenderer.py test_XmlRenderer._get_complex_structure/VarMisuse@61/90 `author`->`novels`