docstr: Returns pooling module.
  Allows to override for child classes.
docstr_tok: ["Returns","pooling","module",".","Allows","to","override","for","child","classes","."]
code: def _build_pooling_module(self):
      """
      Returns pooling module.
      Allows to override for child classes.
      """
      if self._pooling_type == "max":
          pooling = torch.nn.MaxPool1d(kernel_size=2, stride=2)
      elif self._pooling_type == "avg":
          pooling = torch.nn.AvgPool1d(kernel_size=2, stride=2)
  
      return pooling
  
file_path: NeMo/nemo/collections/nlp/modules/common/transformer/reduction_encoders.py
imports: import copy
  import torch
  from nemo.collections.nlp.modules.common.transformer.transformer_encoders import TransformerEncoder
label_desc: Use image node_id 2 for calling the PoolingEncoder obj's underlying member method code with example usage: obj._build_pooling_module() and returns: pooling