code: def savefile(self, filename):
      tree = ET.ElementTree(self.root)
      tree.write(filename, xml_declaration=False, encoding="utf-8")
  
imports: import xml.etree.ElementTree
label_desc: Use image node_id 2 for calling the VocAnnotations obj's underlying member method code with example usage: obj.savefile(filename) without return types