code: def _make_layer(self, block, inplanes, planes, blocks):
      if inplanes != planes:
          downsample = nn.Sequential(
              nn.Conv2D(inplanes, planes, 3, 1, 1),
              nn.BatchNorm2D(planes, use_global_stats=True),
          )
      else:
          downsample = None
      layers = []
      layers.append(block(inplanes, planes, downsample))
      for i in range(1, blocks):
          layers.append(block(planes, planes, downsample=None))
  
      return nn.Sequential(*layers)
  
imports: import copy
  import math
  import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 2 for calling the ResNet obj's underlying member method code with example usage: obj._make_layer(block, inplanes, planes, blocks) and returns: nn