code: def prepare_test(
      ZED_folder,
      save_json_test,
      win_len,
      stride,
  ):
      """test(ZED) set preparation
  
      Args:
          ZED_folder (str): path to ZED folder
          save_json_test (str): test json path
          win_len (float):
              window length for generating emotion labels. Defaults to 0.02.
          stride (float):
              stride for generating emotion labels. Defaults to 0.02.
      """
      if os.path.exists(save_json_test):
          logger.info("test json exists, skipping preparation.")
          return
  
      try:
          zed_json_path = os.path.join(ZED_folder, "ZED.json")
          with open(zed_json_path, "r") as f:
              all_dict = json.load(f)
      except OSError:
          logger.info(f"ZED.json can't be found under {ZED_folder}")
          return
  
      bad_keys = []
      for key in all_dict.keys():
          try:
              all_dict[key]["wav"] = all_dict[key]["wav"].replace(
                  "datafolder", ZED_folder
              )
              intervals, ctc_label, frame_label = get_labels(
                  all_dict[key], win_len, stride
              )
              all_dict[key]["frame_label"] = frame_label
              all_dict[key]["ctc_label"] = ctc_label
          except ValueError:
              logger.info(
                  f"Impossible to get labels for id {key} because the window is too large."
              )
              bad_keys.append(key)
              continue
      for key in bad_keys:
          del all_dict[key]
  
      create_json(all_dict, save_json_test)
  
file_path: speechbrain/recipes/ZaionEmotionDataset/emotion_diarization/zed_prepare.py
imports: import os
  import random
  import json
  import logging
  from datasets.prepare_EMOVDB import prepare_emovdb
  from datasets.prepare_ESD import prepare_esd
  from datasets.prepare_IEMOCAP import prepare_iemocap
  from datasets.prepare_JLCORPUS import prepare_jlcorpus
  from datasets.prepare_RAVDESS import prepare_ravdess
label_desc: Use image node_id 4 for calling a global function with example usage: prepare_test(ZED_folder, save_json_test, win_len, stride) without return types