code: def apply_antialiasing_if_needed(
      interp_method, support_sz, scale_factor, antialiasing
  ):
      # antialiasing is "stretching" the field of view according to the scale
      # factor (only for downscaling). this is low-pass filtering. this
      # requires modifying both the interpolation (stretching the 1d
      # function and multiplying by the scale-factor) and the window size.
      scale_factor = float(scale_factor)
      if scale_factor >= 1.0 or not antialiasing:
          return interp_method, support_sz
      cur_interp_method = lambda arg: scale_factor * interp_method(
          scale_factor * arg
      )
      cur_support_sz = support_sz / scale_factor
      return cur_interp_method, cur_support_sz
  
imports: import warnings
  from fractions import Fraction
  from math import ceil
  from typing import Tuple
  import disco_diffusion_clip_rn50.resize_right.interp_methods
label_desc: Use image node_id 9 for calling a global function with example usage: apply_antialiasing_if_needed(interp_method, support_sz, scale_factor, antialiasing) and returns: cur_interp_method,  cur_support_sz, interp_method,  support_sz