code: def midi_heuristic(controls):
      """A combination of heuristics for extracting notes from DDSP controls."""
      return remove_short(
          strided_freq_change(controls) & amp_pooled_outliers(controls),
          min_samples=10,
      )
  
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 14 for calling a global function with example usage: midi_heuristic(controls) and returns: remove_short