code: def load_video(path, min_side=480):
      frame_list = []
      cap = cv2.VideoCapture(path)
      while cap.isOpened():
          _, frame = cap.read()
          if frame is None:
              break
          frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
          if min_side:
              h, w = frame.shape[:2]
              new_w = w * min_side // min(w, h)
              new_h = h * min_side // min(w, h)
              frame = cv2.resize(
                  frame, (new_w, new_h), interpolation=cv2.INTER_CUBIC
              )
          frame_list.append(frame)
      frames = np.stack(frame_list, axis=0)
      fps = cap.get(cv2.CAP_PROP_FPS)
      return frames, fps
  
file_path: PaddleSeg/EISeg/eiseg/plugin/video/video_tools.py
imports: import glob
  import os
  import cv2
  import numpy
  import paddle
  import paddle.nn.functional
  from PIL import Image
  from eiseg.util.vis import get_palette
label_desc: Use image node_id 1 for calling a global function with example usage: load_video(path, min_side) and returns: frames,  fps