code: def get_final_results(self, preds):
      kpts = []
      for idx, kpt in enumerate(preds):
          kpts.append({"keypoints": kpt.tolist()})
  
      self._write_keypoint_results(kpts)
  
imports: import os
  import json
  from collections import defaultdict, OrderedDict
  import numpy
  import paddle
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  from ..modeling.keypoint_utils import oks_nms, keypoint_pck_accuracy, keypoint_auc, keypoint_epe
  from scipy.io import loadmat, savemat
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 6 for calling the KeyPointTopDownCOCOWholeBadyHandEval obj's underlying member method code with example usage: obj.get_final_results(preds) without return types