code: def note(freq, length, amp, rate):
      t = np.linspace(0, length, length * rate)
      data = np.sin(2 * np.pi * freq * t) * amp
      return data.astype(np.int16)
  
file_path: streamlit/examples/audio.py
imports: import io
  import os
  import wave
  import numpy
  from scipy.io import wavfile
  import streamlit
label_desc: Use image node_id 2 for calling a global function with example usage: note(freq, length, amp, rate) and returns: data