class_docstr: Args:
class_docstr_tok: ["Args",":"]
code: def __init__(
      self,
      in_channels,
      inter_channels=None,
      sub_sample=True,
      bn_layer=True,
  ):
      super().__init__(
          in_channels,
          inter_channels=inter_channels,
          dimension=1,
          sub_sample=sub_sample,
          bn_layer=bn_layer,
      )
  
imports: import torch
  from torch import nn
  from torch.nn import functional
  import torchvision
label_desc: Use image node_id 1 to create a new NONLocalBlock1D object from inherited base classes: _NonLocalBlockND with example: obj = NONLocalBlock1D(in_channels, inter_channels, sub_sample, bn_layer)