code: def __init__(self, block, out_channels):
      super(EncoderBlock, self).__init__()
      self.block = block
      self.out_channels = out_channels
      self.spatial_gate = SpatialAttentionGate(out_channels)
      self.channel_gate = ChannelAttentionGate(out_channels)
  
imports: from torch import nn
  from torch.nn import functional
  import torch
  from torchvision import models
  from torchvision.models import resnet34, resnet101, resnet50, resnet152
  import torchvision
label_desc: Use image node_id 1 to create a new EncoderBlock object from inherited base classes: nn with example: obj = EncoderBlock(block, out_channels)