code: def __init__(
      self,
      inplanes,
      planes,
      spatial_stride=1,
      temporal_stride=1,
      dilation=1,
      downsample=None,
      if_inflate=True,
      inflate_style=None,
      norm_layer=BatchNorm3d,
      norm_kwargs=None,
      layer_name="",
      **kwargs,
  ):
      super(BasicBlock, self).__init__()
  
      if if_inflate:
          self.conv1 = conv3x3x3(
              inplanes,
              planes,
              spatial_stride,
              temporal_stride,
              dilation,
          )
      else:
          self.conv1 = conv1x3x3(
              inplanes,
              planes,
              spatial_stride,
              temporal_stride,
              dilation,
          )
      self.bn1 = norm_layer(
          **({} if norm_kwargs is None else norm_kwargs)
      )
      self.relu = nn.ReLU(inplace=False)
      if if_inflate:
          self.conv2 = conv3x3x3(planes, planes)
      else:
          self.conv2 = conv1x3x3(planes, planes)
      self.bn2 = norm_layer(
          **({} if norm_kwargs is None else norm_kwargs)
      )
  
      self.downsample = downsample
      self.spatial_stride = spatial_stride
      self.temporal_stride = temporal_stride
      self.dilation = dilation
  
imports: import torch
  import torch.nn
  from torch.nn import BatchNorm3d
  from .non_local import build_nonlocal_block
label_desc: Use image node_id 1 to create a new BasicBlock object from inherited base classes: nn with example: obj = BasicBlock(inplanes, planes, spatial_stride, temporal_stride, dilation, downsample, if_inflate, inflate_style, norm_layer, norm_kwargs, layer_name)