def read_20newsgroups(test_size=0.2):
    dataset = fetch_20newsgroups(subset='all', shuffle=True, remove=('headers', 'footers', 'quotes'))
    documents = dataset.data
    labels = dataset.target
    return (train_test_split(documents, labels, test_size=test_size), dataset.target_names)
def read_20newsgroups(test_size=0.2):
    dataset = fetch_20newsgroups(subset='all', shuffle=True, remove=('headers', 'footers', 'quotes'))
    documents = dataset.data
    labels = dataset.target
    return (train_test_split(documents, labels, test_size=test_size), dataset.target_names)