class_docstr: Extends the COCO API to (optionally) support panoptic annotations.
class_docstr_tok: ["Extends","the","COCO","API","to","(","optionally",")","support","panoptic","annotations","."]
docstr: Constructor of Microsoft COCO helper class.
  
  Args:
    annotation_file: path to annotation file.
docstr_tok: ["Constructor","of","Microsoft","COCO","helper","class",".","Args",":","annotation_file",":","path","to","annotation","file","."]
code: def __init__(self, annotation_file: Optional[str] = None):
      """Constructor of Microsoft COCO helper class.
  
      Args:
        annotation_file: path to annotation file.
      """
      self.annotation_file = annotation_file
      self.reload_ground_truth()
  
imports: import collections
  import contextlib
  import functools
  import io
  import json
  import os
  import tempfile
  from typing import Any, Dict, List, Optional, Set
  import zipfile
  from absl import logging
  import jax
  import numpy
  import PIL
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  from tensorflow.io import gfile
label_desc: Use image node_id 1 to create a new UniversalCOCO object from inherited base classes: COCO with example: obj = UniversalCOCO(annotation_file)