code: def create_common_coco_eval(coco_eval, img_ids, eval_imgs):
      img_ids, eval_imgs = merge(img_ids, eval_imgs)
      img_ids = list(img_ids)
      eval_imgs = list(eval_imgs.flatten())
  
      coco_eval.evalImgs = eval_imgs
      coco_eval.params.imgIds = img_ids
      coco_eval._paramsEval = copy.deepcopy(coco_eval.params)
  
imports: import os
  import contextlib
  import copy
  import numpy
  import torch
  from pycocotools.cocoeval import COCOeval
  from pycocotools.coco import COCO
  import pycocotools.mask
  from util.misc import all_gather
label_desc: Use image node_id 3 for calling a global function with example usage: create_common_coco_eval(coco_eval, img_ids, eval_imgs) without return types