code: def __init__(self, dim: int):
      super().__init__()
      self.linear = nn.Linear(dim, dim)
      self.activation = nn.Tanh()
  
file_path: carefree-learn/cflearn/modules/blocks/mixed_stacks/poolers.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  from torch import Tensor
  from typing import List
  from typing import Optional
  from torch.nn import Module
  from ..customs import Linear
label_desc: Use image node_id 1 to create a new BertPooler object from inherited base classes: Module with example: obj = BertPooler(dim)