class_docstr: Moving average block to highlight the trend of time series
class_docstr_tok: ["Moving","average","block","to","highlight","the","trend","of","time","series"]
code: def __init__(self, kernel_size, stride):
      super(moving_avg, self).__init__()
      self.kernel_size = kernel_size
      self.avg = nn.AvgPool1d(
          kernel_size=kernel_size, stride=stride, padding=0
      )
  
imports: import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 1 to create a new moving_avg object from inherited base classes: nn with example: obj = moving_avg(kernel_size, stride)