code: def visualize_ocr(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"])
      text = np.array(data["text"])
      rec_scores = np.array(data["rec_scores"])
      cls_scores = np.array(data["cls_scores"])
      cls_labels = data["cls_labels"]
  
      ocr_result = fd.C.vision.OCRResult()
      ocr_result.boxes = boxes
      ocr_result.text = text
      ocr_result.rec_scores = rec_scores
      ocr_result.cls_scores = cls_scores
      ocr_result.cls_labels = cls_labels
  
      result = fd.vision.vis_ppocr(image, ocr_result)
      return result
  
file_path: VisualDL/visualdl/component/inference/fastdeploy_client/visualizer.py
imports: import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: visualize_ocr(image, data) and returns: result