code: def set_loudness(sources_list):
      """Compute original loudness and normalise them randomly"""
      # Initialize loudness
      loudness_list = []
      # In aishell1 all sources are at 16KHz hence the meter
      meter = pyln.Meter(RATE)
      # Randomize sources loudness
      target_loudness_list = []
      sources_list_norm = []
  
      # Normalize loudness
      for i in range(len(sources_list)):
          # Compute initial loudness
          loudness_list.append(
              meter.integrated_loudness(sources_list[i])
          )
          # Pick a random loudness
          target_loudness = random.uniform(MIN_LOUDNESS, MAX_LOUDNESS)
          # Noise has a different loudness
          if i == len(sources_list) - 1:
              target_loudness = random.uniform(
                  MIN_LOUDNESS - 5, MAX_LOUDNESS - 5
              )
          # Normalize source to target loudness
  
          with warnings.catch_warnings():
              # We don't want to pollute stdout, but we don't want to ignore
              # other warnings.
              warnings.simplefilter("ignore")
              src = pyln.normalize.loudness(
                  sources_list[i], loudness_list[i], target_loudness
              )
          # If source clips, renormalize
          if np.max(np.abs(src)) >= 1:
              src = (
                  sources_list[i]
                  * MAX_AMP
                  / np.max(np.abs(sources_list[i]))
              )
              target_loudness = meter.integrated_loudness(src)
          # Save scaled source and loudness.
          sources_list_norm.append(src)
          target_loudness_list.append(target_loudness)
      return loudness_list, target_loudness_list, sources_list_norm
  
imports: import argparse
  import os
  import random
  import warnings
  import numpy
  import pandas
  import pyloudnorm
  import soundfile
  from tqdm import tqdm
label_desc: Use image node_id 11 for calling a global function with example usage: set_loudness(sources_list) and returns: loudness_list,  target_loudness_list,  sources_list_norm