def METHOD_NAME(self, requests):
    """
    Basic text preprocessing, based on the user's choice of application mode.
    Args:
        requests (list): A list of dictionaries with a "data" or "body" field, each
                        containing the input text to be processed.
    Returns:
        tuple: A tuple with two tensors: the batch of input ids and the batch of
            attention masks.
    """
    input_texts = [data.get("data") or data.get("body") for data in requests]
    input_ids_batch, attention_mask_batch = [], []
    for input_text in input_texts:
        input_ids, attention_mask = self.encode_input_text(input_text)
        input_ids_batch.append(input_ids)
        attention_mask_batch.append(attention_mask)
    input_ids_batch = torch.cat(input_ids_batch, dim=0)
    attention_mask_batch = torch.cat(attention_mask_batch, dim=0)
    return input_ids_batch, attention_mask_batch