code: def __init__(self, in_ch, out_ch, bilinear=True):
      super(UpLayer, self).__init__()
      if bilinear:
          self.up = nn.Upsample(
              scale_factor=2, mode="bilinear", align_corners=True
          )
      else:
          self.up = nn.ConvTranspose2d(
              in_ch // 2, in_ch // 2, 2, stride=2
          )
      self.conv = DoubleConv(in_ch, out_ch)
  
imports: import torch.nn
  import torch.nn.functional
  import torch
label_desc: Use image node_id 1 to create a new UpLayer object from inherited base classes: nn with example: obj = UpLayer(in_ch, out_ch, bilinear)