code: def load_video(video_path):
      vr = VideoReader(video_path, ctx=cpu(0))
      total_frame_num = len(vr)
      fps = round(vr.get_avg_fps())
      frame_idx = [i for i in range(0, len(vr), fps)]
      spare_frames = vr.get_batch(frame_idx).asnumpy()
      return spare_frames
  
file_path: llama-vid/llamavid/eval/model_video_chatgpt_general.py
imports: import argparse
  import torch
  from llamavid.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN
  from llamavid.conversation import conv_templates, SeparatorStyle
  from llamavid.model.builder import load_pretrained_model
  from llava.utils import disable_torch_init
  from llava.mm_utils import tokenizer_image_token, get_model_name_from_path, KeywordsStoppingCriteria
  import json
  import os
  import math
  from tqdm import tqdm
  from decord import VideoReader, cpu
label_desc: Use image node_id 4 for calling a global function with example usage: load_video(video_path) and returns: spare_frames