code: def __init__(
      self,
      filename,
      witdh,
      height,
      depth=3,
      foldername="VOC2007",
      sourcename="Unknown",
  ):
      self.root = ET.Element("annotation")
      self.foleder = ET.SubElement(self.root, "folder")
      self.filename = ET.SubElement(self.root, "filename")
      self.source = ET.SubElement(self.root, "source")
      self.size = ET.SubElement(self.root, "size")
      self.width = ET.SubElement(self.size, "width")
      self.height = ET.SubElement(self.size, "height")
      self.depth = ET.SubElement(self.size, "depth")
  
      self.foleder.text = foldername
      self.filename.text = filename
      self.source.text = sourcename
      self.width.text = str(witdh)
      self.height.text = str(height)
      self.depth.text = str(depth)
  
imports: import xml.etree.ElementTree
label_desc: Use image node_id 1 to create a new VocAnnotations object  with example: obj = VocAnnotations(filename, witdh, height, depth, foldername, sourcename)