code: def forward(self, x):
      x = F.interpolate(x, scale_factor=2.0, mode="nearest")
      x = self.conv(x)
  
      return x
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from basicsr.utils import get_root_logger
  from basicsr.utils.registry import ARCH_REGISTRY
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: x