code: def update(self, targets, outputs):
      if self.iou_type == "bbox":
          self.prepare_for_coco_detection(targets, outputs)
      elif self.iou_type == "segm":
          self.prepare_for_coco_segmentation(targets, outputs)
      else:
          raise KeyError(f"not support iou_type: {self.iou_type}")
  
file_path: deep-learning-for-image-processing/pytorch_object_detection/train_coco_dataset/train_utils/coco_eval.py
imports: import json
  import copy
  import numpy
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  import pycocotools.mask
  from .distributed_utils import all_gather, is_main_process
label_desc: Use image node_id 4 for calling the EvalCOCOMetric obj's underlying member method code with example usage: obj.update(targets, outputs) without return types