def METHOD_NAME(self, feat):
    """Encode feature in `beam_search` (optional).
    Args:
        x (numpy.ndarray): input feature (T, D)
    Returns:
        paddle.Tensor: encoded feature (T, D)
    """
    raise NotImplementedError("encode method is not implemented")