code: def resize(self, net: Tensor) -> Tensor:
      return self.decoder.resize(net)
  
imports: import torch
  from torch import nn
  from torch import Tensor
  from typing import Any
  from typing import Dict
  from typing import Optional
  from typing import NamedTuple
  from cftool.types import tensor_dict_type
  from .encoder import make_encoder
  from .encoder import IEncoder
  from .encoder import EncoderMixin
  from .decoder import make_decoder
  from .decoder import IDecoder
  from ...misc.toolkit import auto_num_layers
label_desc: Use image node_id 1 for calling the EncoderDecoderMixin obj's underlying member method code with example usage: obj.resize(net) and returns: self