code: def save_wav(audio, fname, sr=16000):
      wavfile.write(fname, sr, audio.astype("float32"))
      print("Saved to {}".format(fname))
  
file_path: magenta/magenta/models/gansynth/lib/generate_util.py
imports: from magenta.models.gansynth.lib import util
  import note_seq
  import numpy
  from scipy.io import wavfile
label_desc: Use image node_id 7 for calling a global function with example usage: save_wav(audio, fname, sr) without return types