code: def __init__(self, lvis_gt: LVIS, iou_types: List[str]):
      assert isinstance(iou_types, (list, tuple))
      self.lvis_gt = lvis_gt
      # if not isinstance(lvis_gt, LVIS):
      #    raise TypeError('Unsupported LVIS object', lvis_gt)
  
      self.iou_types = iou_types
      self.img_ids = []
      self.predictions = []
      self.lvis_eval_per_iou = dict()
  
imports: import copy
  import itertools
  import logging
  from typing import List
  import numpy
  import pycocotools.mask
  import torch
  import torch.distributed
  from lvis import LVISEval, LVISResults, LVIS
label_desc: Use image node_id 1 to create a new LvisEvaluator object  with example: obj = LvisEvaluator(lvis_gt, iou_types)