code: def create_window_splits(
      values, compare_list, reference_list, window_size
  ):
      start = values[0]
      stop = values[1]
      start_floor = int(np.floor(start / window_size))
      stop_floor = int(np.ceil(stop / window_size))
      reference_sub_list = []
      # to create reference list
      iter_values = [
          i
          for i in range(
              start_floor * window_size, stop_floor * window_size + 1
          )
          if i % window_size == 0
      ]
      for i in range(len(iter_values) - 1):
          temp = [iter_values[i], iter_values[i + 1]]
          reference_sub_list.append(temp.copy())
          compare_list.append(temp.copy())
  
      reference_sub_list[0][0] = start
      reference_sub_list[-1][1] = stop
      reference_list.append(reference_sub_list)
      return reference_list, compare_list
  
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 7 for calling a global function with example usage: create_window_splits(values, compare_list, reference_list, window_size) and returns: reference_list,  compare_list