code: def alpha_pose_detection_processor(
      img, boxes, class_idxs, scores, thr=0.5
  ):
      if len(boxes.shape) == 3:
          boxes = boxes.squeeze(axis=0)
      if len(class_idxs.shape) == 3:
          class_idxs = class_idxs.squeeze(axis=0)
      if len(scores.shape) == 3:
          scores = scores.squeeze(axis=0)
  
      # cilp coordinates
      boxes[:, [0, 2]] = mx.nd.clip(
          boxes[:, [0, 2]], 0.0, img.shape[1] - 1
      )
      boxes[:, [1, 3]] = mx.nd.clip(
          boxes[:, [1, 3]], 0.0, img.shape[0] - 1
      )
  
      # select boxes
      mask1 = (class_idxs == 0).asnumpy()
      mask2 = (scores > thr).asnumpy()
      picked_idxs = np.where((mask1 + mask2) > 1)[0]
      if picked_idxs.shape[0] == 0:
          return None, None
      else:
          return boxes[picked_idxs], scores[picked_idxs]
  
imports: from __future__ import absolute_import
  from __future__ import division
  import math
  import random
  import numpy
  import mxnet
  from mxnet import nd, image
  from mxnet.gluon.data.vision import transforms
  from ...utils.filesystem import try_import_cv2
label_desc: Use image node_id 24 for calling a global function with example usage: alpha_pose_detection_processor(img, boxes, class_idxs, scores, thr) and returns: None,  None, boxes,  scores