class_docstr: ResNet BasicBlock
      
code: def __init__(
      self,
      inplanes,
      planes,
      stride=1,
      dilation=1,
      downsample=None,
      previous_dilation=1,
      norm_layer=None,
  ):
      super(BasicBlock, self).__init__()
      self.conv1 = nn.Conv2d(
          inplanes,
          planes,
          kernel_size=3,
          stride=stride,
          padding=dilation,
          dilation=dilation,
          bias=False,
      )
      self.bn1 = norm_layer(planes)
      self.relu = nn.ReLU(inplace=True)
      self.conv2 = nn.Conv2d(
          planes,
          planes,
          kernel_size=3,
          stride=1,
          padding=previous_dilation,
          dilation=previous_dilation,
          bias=False,
      )
      self.bn2 = norm_layer(planes)
      self.downsample = downsample
      self.stride = stride
  
imports: import math
  import torch.utils.model_zoo
  import torch.nn
label_desc: Use image node_id 1 to create a new BasicBlock object from inherited base classes: nn with example: obj = BasicBlock(inplanes, planes, stride, dilation, downsample, previous_dilation, norm_layer)