code: def get_warmup_and_linear_decay(max_steps, warmup_steps):
      warmup_steps = max(warmup_steps, 1)
  
      def fn(step):
          if step < warmup_steps:
              return 1
          elif step == warmup_steps:
              return 0.5
          else:
              pos_step = step - warmup_steps
              return 0.5 * 0.75 ** (pos_step // 5)
  
      return fn
  
imports: import paddle
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: get_warmup_and_linear_decay(max_steps, warmup_steps) and returns: fn, int, int, unknown