class_docstr: This wrapper is for loading the panoptic style annotation file.
  
  The format is shown in the CocoPanopticDataset class.
  
  Args:
      annotation_file (str, optional): Path of annotation file.
          Defaults to None.
class_docstr_tok: ["This","wrapper","is","for","loading","the","panoptic","style","annotation","file",".","The","format","is","shown","in","the","CocoPanopticDataset","class",".","Args",":","annotation_file","(","str",",","optional",")",":","Path","of","annotation","file",".","Defaults","to","None","."]
docstr: Load anns with the specified ids.
  
  ``self.anns`` is a list of annotation lists instead of a
  list of annotations.
  
  Args:
      ids (Union[List[int], int]): Integer ids specifying anns.
  
  Returns:
      anns (List[dict], optional): Loaded ann objects.
docstr_tok: ["Load","anns","with","the","specified","ids",".","``","self.anns","``","is","a","list","of","annotation","lists","instead","of","a","list","of","annotations",".","Args",":","ids","(","Union","[","List","[","int","]",",","int","]",")",":","Integer","ids","specifying","anns",".","Returns",":","anns","(","List","[","dict","]",",","optional",")",":","Loaded","ann","objects","."]
code: def load_anns(
      self, ids: Union[List[int], int] = []
  ) -> Optional[List[dict]]:
      """Load anns with the specified ids.
  
      ``self.anns`` is a list of annotation lists instead of a
      list of annotations.
  
      Args:
          ids (Union[List[int], int]): Integer ids specifying anns.
  
      Returns:
          anns (List[dict], optional): Loaded ann objects.
      """
      anns = []
  
      if hasattr(ids, "__iter__") and hasattr(ids, "__len__"):
          # self.anns is a list of annotation lists instead of
          # a list of annotations
          for id in ids:
              anns += self.anns[id]
          return anns
      elif type(ids) == int:
          return self.anns[ids]
  
file_path: mmdetection/projects/EfficientDet/efficientdet/tensorflow/api_wrappers/coco_api.py
imports: import warnings
  from collections import defaultdict
  from typing import List, Optional, Union
  import pycocotools
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
label_desc: Use image node_id 3 for calling the COCOPanoptic obj's underlying member method code with example usage: obj.load_anns(ids) and returns: anns, self