code: def saveMean(fname, data):
      root = et.Element("opencv_storage")
      et.SubElement(root, "Channel").text = "3"
      et.SubElement(root, "Row").text = str(imgSize)
      et.SubElement(root, "Col").text = str(imgSize)
      meanImg = et.SubElement(root, "MeanImg", type_id="opencv-matrix")
      et.SubElement(meanImg, "rows").text = "1"
      et.SubElement(meanImg, "cols").text = str(imgSize * imgSize * 3)
      et.SubElement(meanImg, "dt").text = "f"
      et.SubElement(meanImg, "data").text = " ".join(
          ["%e" % n for n in np.reshape(data, (imgSize * imgSize * 3))]
      )
  
      tree = et.ElementTree(root)
      tree.write(fname)
      x = xml.dom.minidom.parse(fname)
      with open(fname, "w") as f:
          f.write(x.toprettyxml(indent="  "))
  
file_path: CNTK/Tutorials/ImageHandsOn/CifarConverter.py
imports: from __future__ import print_function
  import os
  import sys
  import struct
  import pickle
  from PIL import Image
  import numpy
  import xml.etree.cElementTree
  import xml.dom.minidom
label_desc: Use image node_id 2 for calling a global function with example usage: saveMean(fname, data) without return types