code: def __init__(
      self, in_channels, out_channels, stride, name, is_first=False
  ):
      super(ShortCut, self).__init__()
      self.use_conv = True
  
      if in_channels != out_channels or stride != 1 or is_first == True:
          if stride == (1, 1):
              self.conv = ConvBNLayer(
                  in_channels, out_channels, 1, 1, name=name
              )
          else:  # stride==(2,2)
              self.conv = ConvBNLayer(
                  in_channels, out_channels, 1, stride, name=name
              )
      else:
          self.use_conv = False
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from paddle import nn, ParamAttr
  from paddle.nn import functional
  import paddle
  import numpy
label_desc: Use image node_id 1 to create a new ShortCut object from inherited base classes: nn with example: obj = ShortCut(in_channels, out_channels, stride, name, is_first)