code: def __init__(
      self,
      num_channels,
      num_filters,
      num_blocks,
      has_se=False,
      name=None,
  ):
      super(Layer1, self).__init__()
  
      self.bottleneck_block_list = []
  
      for i in range(num_blocks):
          bottleneck_block = self.add_sublayer(
              "bb_{}_{}".format(name, i + 1),
              BottleneckBlock(
                  num_channels=num_channels
                  if i == 0
                  else num_filters * 4,
                  num_filters=num_filters,
                  has_se=has_se,
                  stride=1,
                  downsample=True if i == 0 else False,
                  name=name + "_" + str(i + 1),
              ),
          )
          self.bottleneck_block_list.append(bottleneck_block)
  
imports: import math
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager, param_init
  from paddleseg.models import layers
  from paddleseg.utils import utils
label_desc: Use image node_id 1 to create a new Layer1 object from inherited base classes: nn with example: obj = Layer1(num_channels, num_filters, num_blocks, has_se, name)