code: def normalize(frame, ww=400, wc=0):
      wl = wc - ww / 2
      wh = wc + ww / 2
      frame = frame.astype("float16")
      np.clip(frame, wl, wh, out=frame)
      frame = (frame - wl) / ww * 255
      frame = frame.astype(np.uint8)
      frame = cv2.cvtColor(frame, cv2.COLOR_GRAY2BGR)
      return frame
  
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 2 for calling a global function with example usage: normalize(frame, ww, wc) and returns: frame