code: def __init__(self, method, horizon):
      super().__init__()
  
      self.method = method
      self.horizon = horizon
  
imports: import math
  from functools import partial
  import torch
  import torch.nn
  import torch.nn.functional
  from einops import rearrange
  from opt_einsum import contract
label_desc: Use image node_id 1 to create a new TSNormalization object from inherited base classes: nn with example: obj = TSNormalization(method, horizon)