code: def forward(self, x):
      res = x.matmul(self.weights).squeeze(-1)
      if self.bias is not None:
          res = res + self.bias
      return res
  
imports: import torch
  from .mean import Mean
label_desc: Use image node_id 2 for calling the LinearMean obj's underlying member method code with example usage: obj.forward(x) and returns: res