code: def create_json_structure(df, data_folder):
      session_ids = df["session_id"].unique().tolist()
      json = {}
      for session_id in session_ids:
          path = (
              data_folder
              + str(session_id)
              + "/session_"
              + str(session_id)
              + "_mixture.wav"
          )
          df_session = df[df["session_id"] == session_id]
          speech = list(zip(df_session["start"], df_session["stop"]))
          json["session_" + str(session_id)] = {
              "file": path,
              "speech": speech,
          }
      return json
  
file_path: speechbrain/recipes/LibriParty/VAD/libriparty_prepare.py
imports: import numpy
  import pandas
  import json
  import logging
  from collections import OrderedDict
label_desc: Use image node_id 5 for calling a global function with example usage: create_json_structure(df, data_folder) and returns: json