code: def mean_abs_scaling(seq, min_scale=1e-5):
      return seq.abs().mean(1).clamp(min_scale, None).unsqueeze(1)
  
file_path: gluonts/src/gluonts/torch/model/simple_feedforward/module.py
imports: from typing import List, Optional, Tuple
  import torch
  from torch import nn
  from gluonts.core.component import validated
  from gluonts.model import Input, InputSpec
  from gluonts.torch.distributions import Output, StudentTOutput
  from gluonts.torch.util import weighted_average
label_desc: Use image node_id 1 for calling a global function with example usage: mean_abs_scaling(seq, min_scale) and returns: seq