code: def __sox(y, sr, *args):
      """Execute sox
  
      Parameters
      ----------
      y : np.ndarray
          Audio time series
  
      sr : int > 0
          Sampling rate of `y`
  
      *args
          Additional arguments to sox
  
      Returns
      -------
      y_out : np.ndarray
          `y` after sox transformation
      """
  
      assert sr > 0
  
      fdesc, infile = tempfile.mkstemp(suffix=".wav")
      os.close(fdesc)
      fdesc, outfile = tempfile.mkstemp(suffix=".wav")
      os.close(fdesc)
  
      # Dump the audio
      psf.write(infile, y, sr)
  
      try:
          arguments = ["sox", infile, outfile, "-q"]
          arguments.extend(args)
  
          subprocess.check_call(arguments)
  
          y_out, sr = psf.read(outfile)
          y_out = y_out.T
          if y.ndim == 1:
              y_out = librosa.to_mono(y_out)
  
      finally:
          os.unlink(infile)
          os.unlink(outfile)
  
      return y_out
  
file_path: muda/muda/deformers/sox.py
imports: import os
  import six
  import subprocess
  import tempfile
  import librosa
  import json
  import soundfile
  from pkg_resources import resource_filename
  from ..base import BaseTransformer
label_desc: Use image node_id 1 for calling a global function with example usage: __sox(y, sr) and returns: y_out