code: def ramp(ratio, width):
      n = math.ceil(width / ratio + 1)
      out = paddle.empty([n])
      cur = 0
      for i in range(out.shape[0]):
          out[i] = cur
          cur += ratio
      return paddle.concat([-out[1:].flip([0]), out])[1:-1]
  
file_path: PaddleHub/modules/image/text_to_image/disco_diffusion_ernievil_base/reverse_diffusion/model/make_cutouts.py
imports: import math
  import paddle
  import paddle.nn
  from disco_diffusion_ernievil_base.resize_right.resize_right import resize
  from paddle.nn import functional
  from .None import transforms
label_desc: Use image node_id 3 for calling a global function with example usage: ramp(ratio, width) and returns: paddle