code: def __init__(self, dim, use_bias=False):
      super(ResnetSoftAdaLINBlock, self).__init__()
      self.pad1 = nn.Pad2D([1, 1, 1, 1], "reflect")
      self.conv1 = nn.Conv2D(
          dim, dim, kernel_size=3, stride=1, bias_attr=use_bias
      )
      self.norm1 = SoftAdaLIN(dim)
      self.relu1 = nn.ReLU()
  
      self.pad2 = nn.Pad2D([1, 1, 1, 1], "reflect")
      self.conv2 = nn.Conv2D(
          dim, dim, kernel_size=3, stride=1, bias_attr=use_bias
      )
      self.norm2 = SoftAdaLIN(dim)
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new ResnetSoftAdaLINBlock object from inherited base classes: nn with example: obj = ResnetSoftAdaLINBlock(dim, use_bias)