code: def transform_sources(sources_list, freq, mode, gain_list):
      """Transform aishell1 sources to aishell1mix"""
      # Normalize sources
      sources_list_norm = loudness_normalize(sources_list, gain_list)
      # Resample the sources
      sources_list_resampled = resample_list(sources_list_norm, freq)
      # Reshape sources
      reshaped_sources = fit_lengths(sources_list_resampled, mode)
      return reshaped_sources
  
imports: import os
  import argparse
  import soundfile
  import pandas
  import numpy
  import functools
  from scipy.signal import resample_poly
  import tqdm.contrib.concurrent
  import glob
  import shutil
label_desc: Use image node_id 11 for calling a global function with example usage: transform_sources(sources_list, freq, mode, gain_list) and returns: reshaped_sources