code: def __init__(self, dim: int = -1, nonlinear: bool = True):
      super().__init__()
      self.dim = dim
      self.nonlinear = nonlinear
  
imports: from typing import List, Optional, Tuple
  import numpy
  import torch
  import torch.nn
  from pts.modules import FeatureEmbedder
label_desc: Use image node_id 1 to create a new GatedLinearUnit object from inherited base classes: nn with example: obj = GatedLinearUnit(dim, nonlinear)