def METHOD_NAME(server):
    exp = XmlExporter(server)
    exp.build_etree([server.nodes.objects])
    with tempfile.TemporaryDirectory() as tmpdir:
        exp.write_xml(Path(tmpdir) / "toto_test_export.xml")