code: def update(self, targets, outputs):
      if self.iou_type == "bbox":
          self.prepare_for_coco_detection(targets, outputs)
      else:
          raise KeyError(f"not support iou_type: {self.iou_type}")
  
imports: import os
  import time
  import json
  import copy
  import cv2
  import numpy
  import torch
  from torchmetrics.detection.mean_ap import MeanAveragePrecision
  import torchvision
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  from compression.api import DataLoader, Metric
label_desc: Use image node_id 3 for calling the EvalCOCOMetric obj's underlying member method code with example usage: obj.update(targets, outputs) without return types