code: def main_gen(params):
      """Calls main_gen_single_process() to generate the audio signals, verifies
      that they meet the requirements, and writes the files to storage
      """
      clean_source_files = []
      clean_clipped_files = []
      clean_low_activity_files = []
      noise_source_files = []
      noise_clipped_files = []
      noise_low_activity_files = []
  
      file_num = params["fileindex_end"] - params["fileindex_start"] + 1
  
      mp_pool = multiprocessing.Pool(processes=params["n_jobs"])
      mp_args = []
  
      assert (
          params["fileindex_start"]
          + round(file_num / params["n_jobs"] * params["n_jobs"])
          == params["fileindex_end"] + 1
      )
  
      for j in range(params["n_jobs"]):
          mp_args.append(
              (
                  params,
                  j,
                  params["fileindex_start"]
                  + round(file_num / params["n_jobs"] * j),
                  params["fileindex_start"]
                  + round(file_num / params["n_jobs"] * (j + 1)),
                  params["n_jobs"],
              )
          )
  
      mp_results = mp_pool.starmap(main_gen_single_process, mp_args)
  
      for res in mp_results:
          clean_source_files.extend(res[0])
          clean_clipped_files.extend(res[1])
          clean_low_activity_files.extend(res[2])
          noise_source_files.extend(res[3])
          noise_clipped_files.extend(res[4])
          noise_low_activity_files.extend(res[5])
  
      return (
          clean_source_files,
          clean_clipped_files,
          clean_low_activity_files,
          noise_source_files,
          noise_clipped_files,
          noise_low_activity_files,
      )
  
file_path: espnet/egs2/dns_icassp22/enh1/local/noisyspeech_synthesizer.py
imports: import argparse
  import configparser
  import glob
  import multiprocessing
  import os
  import sys
  from pathlib import Path
  from random import shuffle
  import librosa
  import numpy
  import pandas
  from audiolib import activitydetector, audioread, audiowrite, is_clipped, segmental_snr_mixer
  from scipy import signal
  import utils
label_desc: Use image node_id 5 for calling a global function with example usage: main_gen(params) and returns: clean_source_files,  clean_clipped_files,  clean_low_activity_files,  noise_source_files,  noise_clipped_files,  noise_low_activity_files