code: def create_test_sound(
      pathname, freq=441, duration=None, framerate=44100, nchannels=2
  ):
      """create a sound file at pathname, overwriting exiting file"""
      sampwidth = 2
      nframes = duration or framerate  # defaults to 1 second duration
      fid = wave.open(pathname, "w")
      fid.setnchannels(nchannels)
      fid.setsampwidth(sampwidth)
      fid.setframerate(framerate)
      fid.setnframes(nframes)
      frames = create_sine_wave(freq, framerate, nframes, nchannels)
      fid.writeframes(frames)
      fid.close()
      return 0
  
imports: import wave
  import math
  import struct
label_desc: Use image node_id 2 for calling a global function with example usage: create_test_sound(pathname, freq, duration, framerate, nchannels) and returns: int