code: def median_amps(controls, start, stop):
      amps = np.squeeze(controls["harmonic"]["controls"]["amplitudes"])
      return np.median(amps[start:stop])
  
file_path: ddsp/ddsp/training/heuristics.py
imports: import ddsp
  import gin
  import note_seq
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 8 for calling a global function with example usage: median_amps(controls, start, stop) and returns: np