class_docstr: Series decomposition block
class_docstr_tok: ["Series","decomposition","block"]
code: def forward(self, x):
      moving_mean = self.MovingAvg(x)
      res = x - moving_mean
      return res, moving_mean
  
imports: import numpy
  from typing import Optional
  import torch
  import torch.nn
  import torch.nn.functional
  from ..common._modules import DataEmbedding
  from ..common._base_windows import BaseWindows
  from ..losses.pytorch import MAE
label_desc: Use image node_id 2 for calling the SeriesDecomp obj's underlying member method code with example usage: obj.forward(x) and returns: res,  moving_mean