code: def get_inputs(self):
      img_metas = []
      gt_bboxes = []
      gt_labels = []
      gt_keypoints = []
      gt_areas = []
      pad_gt_mask = (
          self.inputs["pad_gt_mask"].astype("bool").squeeze(-1)
      )
      for idx, im_shape in enumerate(self.inputs["im_shape"]):
          img_meta = {
              "img_shape": im_shape.astype("int32").tolist()
              + [
                  1,
              ],
              "batch_input_shape": self.inputs["image"].shape[-2:],
              "image_name": self.inputs["image_file"][idx],
          }
          img_metas.append(img_meta)
          if not pad_gt_mask[idx].any():
              gt_keypoints.append(self.inputs["gt_joints"][idx][:1])
              gt_labels.append(self.inputs["gt_class"][idx][:1])
              gt_bboxes.append(self.inputs["gt_bbox"][idx][:1])
              gt_areas.append(self.inputs["gt_areas"][idx][:1])
              continue
  
          gt_keypoints.append(
              self.inputs["gt_joints"][idx][pad_gt_mask[idx]]
          )
          gt_labels.append(
              self.inputs["gt_class"][idx][pad_gt_mask[idx]]
          )
          gt_bboxes.append(
              self.inputs["gt_bbox"][idx][pad_gt_mask[idx]]
          )
          gt_areas.append(
              self.inputs["gt_areas"][idx][pad_gt_mask[idx]]
          )
  
      return img_metas, gt_bboxes, gt_labels, gt_keypoints, gt_areas
  
file_path: PaddleDetection/ppdet/modeling/architectures/keypoint_petr.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import paddle
  from ppdet.core.workspace import register
  from .meta_arch import BaseArch
  from ..None import layers
label_desc: Use image node_id 3 for calling the PETR obj's underlying member method code with example usage: obj.get_inputs() and returns: img_metas,  gt_bboxes,  gt_labels,  gt_keypoints,  gt_areas