code: def test_constant_then_schedule():
      rates = constant_then(1.0, 2, [100, 200])
      assert next(rates) == 1.0
      assert next(rates) == 1.0
      assert next(rates) == 100
      assert next(rates) == 200
  
imports: from thinc.api import compounding, constant, constant_then, cyclic_triangular, decaying, slanted_triangular, warmup_linear
label_desc: Use image node_id 4 for calling a global function with example usage: test_constant_then_schedule() without return types