code: def visualize_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"
          )
      boxes = np.array(data["boxes"])
      scores = np.array(data["scores"])
      label_ids = np.array(data["label_ids"])
      masks = np.array(data["masks"])
      contain_masks = data["contain_masks"]
      detection_result = fd.C.vision.DetectionResult()
      detection_result.boxes = boxes
      detection_result.scores = scores
      detection_result.label_ids = label_ids
      detection_result.masks = masks
      detection_result.contain_masks = contain_masks
      result = fd.vision.vis_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 1 for calling a global function with example usage: visualize_detection(image, data) and returns: result