code: def __init__(self, dim: int):
      super().__init__()
      self.net = Conv2d(dim, dim, kernel_size=3, padding=1)
  
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 1 to create a new Upsample object from inherited base classes: nn with example: obj = Upsample(dim)