code: def create_dataframe(df, json):
      sessions = list(json.keys())
      session_id = 0
      for session in sessions:
          sub_section = list(json[session].keys())
          for sub in sub_section:
              if sub != "noises" and sub != "background":
                  length = len(json[session][sub])
                  for i in range(length):
                      temp_dict = json[session][sub][i]
                      temp_dict["session_id"] = session_id
                      df = df.append([temp_dict])
          session_id += 1
  
      df = clean_dataframe(df)
      return df
  
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 3 for calling a global function with example usage: create_dataframe(df, json) and returns: df