code: def __init__(self, dim, dim_seq, act=nn.Identity(), init_eps=1e-3):
      super().__init__()
      dim_out = dim // 2
  
      self.norm = nn.LayerNorm(dim_out)
      self.proj = nn.Conv1D(dim_seq, dim_seq, 1)
  
      self.act = act
  
      init_eps /= dim_seq
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new SpatialGatingUnit object from inherited base classes: nn with example: obj = SpatialGatingUnit(dim, dim_seq, act, init_eps)