code: def get_pose3d_res(results, im_id):
      anns = []
      preds = results["pose3d"]
      for idx in range(im_id.shape[0]):
          image_id = im_id[idx].item()
          pose3d = preds[idx]
          ann = {
              "image_id": image_id,
              "category_id": 1,  # XXX hard code
              "pose3d": pose3d.tolist(),
              "score": float(1.0),
          }
          anns.append(ann)
      return anns
  
file_path: PaddleDetection/ppdet/metrics/json_results.py
imports: import six
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: get_pose3d_res(results, im_id) and returns: anns