def METHOD_NAME(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