code: def write(self, fileName):
      etree.ElementTree(self.__root).write(
          fileName,
          xml_declaration=True,
          encoding="utf-8",
          pretty_print=True,
      )
  
file_path: pyalgotrade/tools/symbols/symbolsxml.py
imports: from lxml import etree
label_desc: Use image node_id 4 for calling the Writer obj's underlying member method code with example usage: obj.write(fileName) without return types