code: def create_json(data, json_file):
      """
      Creates the json file given a list of wav information.
      Arguments
      ---------
      data : dict
          The dict of wav information (path, label, emotion).
      json_file : str
          The path of the output json file
      """
      # Writing the dictionary to the json file
      with open(json_file, mode="w") as json_f:
          json.dump(data, json_f, indent=2)
      logger.info(f"{json_file} successfully created!")
  
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 6 for calling a global function with example usage: create_json(data, json_file) without return types