code: def extend_noise(noise, max_length):
      """Concatenate noise using hanning window"""
      noise_ex = noise
      window = np.hanning(RATE + 1)
      # Increasing window
      i_w = window[: len(window) // 2 + 1]
      # Decreasing window
      d_w = window[len(window) // 2 :: -1]
      # Extend until max_length is reached
      while len(noise_ex) < max_length:
          noise_ex = np.concatenate(
              (
                  noise_ex[: len(noise_ex) - len(d_w)],
                  np.multiply(noise_ex[len(noise_ex) - len(d_w) :], d_w)
                  + np.multiply(noise[: len(i_w)], i_w),
                  noise[len(i_w) :],
              )
          )
      noise_ex = noise_ex[:max_length]
      return noise_ex
  
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 10 for calling a global function with example usage: extend_noise(noise, max_length) and returns: noise_ex