code: def keypoint_detection(img_path, detector, pose_net):
      x, img = data.transforms.presets.yolo.load_test(
          img_path, short=512
      )
      class_IDs, scores, bounding_boxs = detector(x)
  
      pose_input, upscale_bbox = detector_to_simple_pose(
          img, class_IDs, scores, bounding_boxs
      )
      predicted_heatmap = pose_net(pose_input)
      pred_coords, confidence = heatmap_to_coord(
          predicted_heatmap, upscale_bbox
      )
  
      ax = plot_keypoints(
          img,
          pred_coords,
          confidence,
          class_IDs,
          bounding_boxs,
          scores,
          box_thresh=0.5,
          keypoint_thresh=0.2,
      )
      plt.show()
  
file_path: gluon-cv/scripts/pose/simple_pose/demo.py
imports: from __future__ import division
  import argparse
  import numpy
  import mxnet
  from mxnet import gluon, nd, image
  import matplotlib.pyplot
  import gluoncv
  from gluoncv import data
  from gluoncv.model_zoo import get_model
  from gluoncv.data.transforms.pose import detector_to_simple_pose, heatmap_to_coord
  from gluoncv.utils.viz import plot_keypoints
label_desc: Use image node_id 1 for calling a global function with example usage: keypoint_detection(img_path, detector, pose_net) without return types