<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def preprocess_dataset(dataset, question_max_length, context_max_length):
 """Process SQuAD dataset by creating NDArray version of data :param Dataset dataset: SQuAD dataset :param int question_max_length: Maximum length of question (padded or trimmed to that size) :param int context_max_length: Maximum length of context (padded or trimmed to that size) Returns ------- SimpleDataset Dataset of preprocessed records """

    vocab_provider = VocabProvider(dataset)
    transformer = SQuADTransform(
        vocab_provider, question_max_length, context_max_length)
    processed_dataset = SimpleDataset(
        dataset.transform(transformer, lazy=False))
    return processed_dataset