code: def lanczos(x, a):
      cond = paddle.logical_and(-a < x, x < a)
      out = paddle.where(cond, sinc(x) * sinc(x / a), x.new_zeros([]))
      return out / out.sum()
  
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 2 for calling a global function with example usage: lanczos(x, a) and returns: unknown