def get_dataset(x_train: list, y_train: list, x_test: list, y_test: list, tokenizer):

    """

    The function is designed to divide a data set into a training and test sample.

    Parameters
    ----------

    x_train : Training dataframe containing text for vectorization.

    y_train : Target values.

    x_test : The dataframe used to estimate losses and any indicators of the model at the end of each epoch.

    y_test : The dataframe used to estimate losses and any indicators of the model at the end of each epoch.

    tokenizer : Instance of the class 'InputData'.

    """

    train_dataset, test_dataset = tokenizer.create_dataset(x_train=x_train,
                                                           y_train=y_train,
                                                           x_test=x_test,
                                                           y_test=y_test)

    return train_dataset, test_dataset