code: def forward(self, x):
      if not self.size:
          size = [int(t * self.scale_factor) for t in x.shape[-2:]]
      else:
          size = self.size
      return resize(x, size, None, self.mode, self.align_corners)
  
file_path: lavis/lavis/common/annotator/uniformer/mmseg/ops/wrappers.py
imports: import warnings
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 2 for calling the Upsample obj's underlying member method code with example usage: obj.forward(x) and returns: resize