code: def __init__(
      self,
      dataset_name,
      output_dir=None,
      distributed=True,
  ):
      super().__init__(
          dataset_name, output_dir=output_dir, distributed=distributed
      )
      maybe_filter_categories_cocoapi(dataset_name, self._coco_api)
      _maybe_add_iscrowd_annotations(self._coco_api)
      # substitute category metadata to account for categories
      # that are mapped to the same contiguous id
      if hasattr(self._metadata, "thing_dataset_id_to_contiguous_id"):
          self._maybe_substitute_metadata()
  
file_path: detectron2/projects/DensePose/densepose/evaluation/d2_evaluator_adapter.py
imports: from detectron2.data.catalog import Metadata
  from detectron2.evaluation import COCOEvaluator
  from densepose.data.datasets.coco import get_contiguous_id_to_category_id_map, maybe_filter_categories_cocoapi
label_desc: Use image node_id 1 to create a new Detectron2COCOEvaluatorAdapter object from inherited base classes: COCOEvaluator with example: obj = Detectron2COCOEvaluatorAdapter(dataset_name, output_dir, distributed)