class_docstr: Class for writing annotations in VOC format.
  
  See :ref:`this page <VOCDetectionDataset-export>` for format details.
class_docstr_tok: ["Class","for","writing","annotations","in","VOC","format",".","See",":","ref",":","`","this","page","<","VOCDetectionDataset-export",">","`","for","format","details","."]
code: def __init__(self):
      environment = jinja2.Environment(
          loader=jinja2.FileSystemLoader(foc.RESOURCES_DIR),
          trim_blocks=True,
          lstrip_blocks=True,
      )
      self.template = environment.get_template(
          "voc_annotation_template.xml"
      )
  
imports: import logging
  import os
  import jinja2
  import eta.core.utils
  import fiftyone.constants
  import fiftyone.core.labels
  import fiftyone.core.metadata
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.utils.data
label_desc: Use image node_id 1 to create a new VOCAnnotationWriter object from inherited base classes: object with example: obj = VOCAnnotationWriter()