code: def visualize_keypoint_detection(image, data):
      try:
          import fastdeploy as fd
      except Exception:
          raise RuntimeError(
              "fastdeploy is required for visualizing results，please refer to "
              "https://github.com/PaddlePaddle/FastDeploy to install fastdeploy"
          )
      keypoints = np.array(data["keypoints"])
      scores = np.array(data["scores"])
      num_joints = np.array(data["num_joints"])
  
      detection_result = fd.C.vision.KeyPointDetectionResult()
      detection_result.keypoints = keypoints
      detection_result.scores = scores
      detection_result.num_joints = num_joints
  
      result = fd.vision.vis_keypoint_detection(image, detection_result)
      return result
  
file_path: VisualDL/visualdl/component/inference/fastdeploy_client/visualizer.py
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: visualize_keypoint_detection(image, data) and returns: result