code: def _from_config(cls, config: "PretrainedConfig", **kwargs):
      return cls(config.hidden_size, config.hidden_size, "tanh")
  
file_path: allennlp/allennlp/modules/transformer/transformer_pooler.py
imports: from typing import Union, TYPE_CHECKING
  import torch
  from allennlp.common import FromParams
  from allennlp.modules.transformer.activation_layer import ActivationLayer
label_desc: Use image node_id 2 for calling the TransformerPooler obj's underlying member method code with example usage: obj._from_config(cls, config) and returns: cls