code: def __init__(self, scale_factor, mode, align_corners=False):
      super(Interpolate, self).__init__()
      self.interp = nn.functional.interpolate
      self.scale_factor = scale_factor
      self.mode = mode
      self.align_corners = align_corners
  
imports: import copy
  from functools import partial
  import math
  import warnings
  import torch
  import torch.nn
  from .ops import resize
label_desc: Use image node_id 1 to create a new Interpolate object from inherited base classes: nn with example: obj = Interpolate(scale_factor, mode, align_corners)