code: def array_to_video(array_data, video_path, fps=15):
      h, w, s = array_data.shape
      fourcc = VideoWriter_fourcc(*"mp4v")
      videoWriter = cv2.VideoWriter(video_path, fourcc, fps, (w, h))
      for idx in tqdm(range(s)):
          frame = array_data[:, :, idx]
          frame = normalize(frame)
          videoWriter.write(frame)
  
      videoWriter.release()
      cv2.destroyAllWindows()
      print("转视频结束！")
  
file_path: PaddleSeg/EISeg/tool/medical2video.py
imports: import os.path
  import SimpleITK
  import cv2
  from cv2 import VideoWriter_fourcc
  import numpy
  from tqdm import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: array_to_video(array_data, video_path, fps) without return types