code: def _make_lvis_subset(lvis_gt, img_ids):
      img_ids = set(img_ids)
  
      subset = dict()
      subset["categories"] = list(lvis_gt.dataset["categories"])
  
      subset_imgs = []
      for img in lvis_gt.dataset["images"]:
          if img["id"] in img_ids:
              subset_imgs.append(img)
      subset["images"] = subset_imgs
  
      subset_anns = []
      for ann in lvis_gt.dataset["annotations"]:
          if ann["image_id"] in img_ids:
              subset_anns.append(ann)
      subset["annotations"] = subset_anns
  
      return DictLVIS(subset)
  
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 7 for calling the LvisEvaluator obj's underlying member method code with example usage: obj._make_lvis_subset(lvis_gt, img_ids) and returns: DictLVIS