code: def voc_info(json_dataset):
      year = json_dataset.name[4:8]
      image_set = json_dataset.name[9:]
      devkit_path = get_devkit_dir(json_dataset.name)
      assert os.path.exists(
          devkit_path
      ), "Devkit directory {} not found".format(devkit_path)
      anno_path = os.path.join(
          devkit_path, "VOC" + year, "Annotations", "{:s}.xml"
      )
      image_set_path = os.path.join(
          devkit_path,
          "VOC" + year,
          "ImageSets",
          "Main",
          image_set + ".txt",
      )
      return dict(
          year=year,
          image_set=image_set,
          devkit_path=devkit_path,
          anno_path=anno_path,
          image_set_path=image_set_path,
      )
  
file_path: dense-pose/detectron/datasets/voc_dataset_evaluator.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import logging
  import numpy
  import os
  import shutil
  import uuid
  from detectron.core.config import cfg
  from detectron.datasets.dataset_catalog import get_devkit_dir
  from detectron.datasets.voc_eval import voc_eval
  from detectron.utils.io import save_object
label_desc: Use image node_id 6 for calling a global function with example usage: voc_info(json_dataset) and returns: dict