code: def scale_as(x, y, align_corners=False):
      """
      scale x to the same size as y
      """
      y_size = y.shape[2], y.shape[3]
      x_scaled = nn.functional.interpolate(
          x, size=y_size, mode="bilinear", align_corners=align_corners
      )
      return x_scaled
  
imports: import math
  import paddle
  import paddle.nn
  from paddleseg.cvlibs import manager, param_init
  from paddleseg.utils import utils
  from paddleseg.models import layers
  from .ocrnet_nv import OCRNetNV
label_desc: Use image node_id 1 for calling a global function with example usage: scale_as(x, y, align_corners) and returns: x_scaled