code: def write_analyzer_xml(self, data_list, file):
      doc = xml.dom.minidom.Document()
      root = doc.createElement("telemeta")
      doc.appendChild(root)
      for data in data_list:
          name = data["name"]
          id = data["id"]
          unit = data["unit"]
          value = data["value"]
          node = doc.createElement("data")
          node.setAttribute("name", name)
          node.setAttribute("id", id)
          node.setAttribute("unit", unit)
          node.setAttribute("value", str(value))
          root.appendChild(node)
      f = open(self.get_path(file), "w")
      f.write(xml.dom.minidom.Document.toprettyxml(doc))
      f.close()
  
file_path: TimeSide/timeside/core/tools/cache.py
imports: import os
  import xml.dom.minidom
label_desc: Use image node_id 10 for calling the Cache obj's underlying member method code with example usage: obj.write_analyzer_xml(data_list, file) without return types