code: def split_list(array, split_factors):
      assert (
          round(sum(split_factors), 6) == 1
      ), "split_factors should sum to one"
      np.random.shuffle(array)
      pivots = [int(len(array) * x) for x in split_factors]
      out = []
      indx = 0
      for i in pivots:
          out.append(array[indx : i + indx])
          indx = i
      return out
  
file_path: speechbrain/recipes/LibriParty/generate_dataset/create_custom_dataset.py
imports: import os
  import sys
  import json
  import random
  import numpy
  import speechbrain
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.utils.data_utils import get_all_files
  from local.create_mixtures_metadata import create_metadata
  from local.create_mixtures_from_metadata import create_mixture
  from pathlib import Path
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: split_list(array, split_factors) and returns: out