code: def visualize_segmentation(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"
          )
      label_ids = np.array(data["label_ids"])
      score_map = np.array(data["score_map"])
      shape = np.array(data["shape"])
  
      segmentation_result = fd.C.vision.SegmentationResult()
      segmentation_result.shape = shape
      segmentation_result.score_map = score_map
      segmentation_result.label_ids = label_ids
  
      result = fd.vision.vis_segmentation(image, segmentation_result)
      return result
  
file_path: VisualDL/visualdl/component/inference/fastdeploy_client/visualizer.py
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: visualize_segmentation(image, data) and returns: result