code: def write_json(json_data, output_file):
      json.dump(json_data, open(output_file, "w"), indent=2)
  
file_path: llama-vid/scripts/convert_webvid_to_llava.py
imports: import json
  import hashlib
  import pandas
  import io
  import os
  import base64
  import glob
  from PIL import Image
  from tqdm import tqdm
  import random
label_desc: Use image node_id 2 for calling a global function with example usage: write_json(json_data, output_file) without return types