code: def evaluate(self):
      ap = self.cal_ap()
      map = self.cal_map()
  
      res = {}
      res["AP"] = [{i: ap[i] * 100} for i in self.thing_ids]
      res["mAP"] = 100 * map
  
      results = build_info_dict(_type_="metric", ins_metrics=res)
      return results
  
file_path: PaddleSeg/contrib/PanopticSeg/paddlepanseg/utils/evaluation/ins_seg_evaluator.py
imports: from collections import defaultdict
  import numpy
  from paddlepanseg.cvlibs import build_info_dict
  from paddlepanseg.utils import decode_pan_id, is_crowd
  from .evaluator import Evaluator
label_desc: Use image node_id 3 for calling the InsSegEvaluator obj's underlying member method code with example usage: obj.evaluate() and returns: results