class_docstr: Residual bottleneck block
class_docstr_tok: ["Residual","bottleneck","block"]
code: def forward(self, inputs: paddle.Tensor) -> paddle.Tensor:
      y = self.conv0(inputs)
      if self.dilation > 1:
          padding = self.dilation
          y = F.pad(y, [padding, padding, padding, padding])
  
      conv1 = self.conv1(y)
      conv2 = self.conv2(conv1)
  
      if self.shortcut:
          short = inputs
      else:
          short = self.short(inputs)
  
      y = paddle.add(x=short, y=conv2)
      y = F.relu(y)
      return y
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn import AvgPool2D
  from paddle.nn import Conv2D
  from paddle.nn.layer import activation
label_desc: Use image node_id 2 for calling the BottleneckBlock obj's underlying member method code with example usage: obj.forward(inputs) and returns: y