class_docstr: Child class of LVIS that allows for the creation of LVIS objects from
  a dictionary.
docstr: Class for reading and visualizing annotations.
  Args:
      annotation_dict (dict): annotations
docstr_tok: ["Class","for","reading","and","visualizing","annotations",".","Args",":","annotation_dict","(","dict",")",":","annotations"]
code: def __init__(self, annotation_dict):
      """Class for reading and visualizing annotations.
      Args:
          annotation_dict (dict): annotations
      """
      self.logger = logging.getLogger(__name__)
      self.dataset = annotation_dict
  
      assert (
          type(self.dataset) == dict
      ), "Annotation file format {} not supported.".format(
          type(self.dataset)
      )
      self._create_index()
  
imports: import copy
  import itertools
  import logging
  from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  import pycocotools.mask
  import torch
  import torch.distributed
  from lvis import LVISEval, LVISResults, LVIS
  from avalanche.evaluation.metrics.detection import DetectionEvaluator, TCommonDetectionOutput
label_desc: Use image node_id 1 to create a new DictLVIS object from inherited base classes: LVIS with example: obj = DictLVIS(annotation_dict)