def METHOD_NAME(self, inputs: torch.Tensor, data_samples: RecSampleList,
            **kwargs) -> RecSampleList:
    """Predict results from a batch of inputs and data samples with post-
    processing.
    Args:
        inputs (torch.Tensor): Image input tensor.
        data_samples (list[TextRecogDataSample]): A list of N datasamples,
            containing meta information and gold annotations for each of
            the images.
    Returns:
        list[TextRecogDataSample]:  A list of N datasamples of prediction
        results. Results are stored in ``pred_text``.
    """
    feat = self.extract_feat(inputs)
    out_enc = None
    if self.with_encoder:
        out_enc = self.encoder(feat, data_samples)
    return self.decoder.METHOD_NAME(feat, out_enc, data_samples)