code: def eta_scheduler(epoch, values=(0.1,), breakpoints=()):
      """Piecewise constant schedule for eta (selector weight learning rate)."""
      idx = sum(1 if epoch > b else 0 for b in breakpoints)
      return values[idx]
  
imports: import gin
  import tensorflow.compat.v2
label_desc: Use image node_id 1 for calling a global function with example usage: eta_scheduler(epoch, values, breakpoints) and returns: values