code: def add_example(
      file_path, speech, window, example, sample_rate, json_dataset
  ):
      example = "example_" + str(example)
      json_dataset[example] = {}
      json_dataset[example]["wav"] = {}
      json_dataset[example]["wav"]["file"] = file_path
      json_dataset[example]["wav"]["start"] = window[0] * sample_rate
      json_dataset[example]["wav"]["stop"] = window[1] * sample_rate
      for interval in speech:
          interval[0] -= window[0]
          interval[1] -= window[0]
      json_dataset[example]["speech"] = speech
      return json_dataset
  
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 9 for calling a global function with example usage: add_example(file_path, speech, window, example, sample_rate, json_dataset) and returns: json_dataset