code: def forward(self, net: Tensor) -> Tensor:
      net = interpolate(net, factor=2.0, mode="nearest")
      net = self.net(net)
      return net
  
imports: import torch.nn
  from torch import Tensor
  from typing import Any
  from typing import List
  from typing import Optional
  from cftool.types import tensor_dict_type
  from .schema import DecoderMixin
  from ....constants import INPUT_KEY
  from ..encoder.vqgan import normalize
  from ..encoder.vqgan import AttnBlock
  from ..encoder.vqgan import ResidualBlock
  from ....misc.toolkit import interpolate
  from ....modules.blocks import Conv2d
label_desc: Use image node_id 2 for calling the Upsample obj's underlying member method code with example usage: obj.forward(net) and returns: net