

def test_azureml_example_datasets(self):
    max_size = ((10 * 1024) * 1024)
    skip = ['Restaurant feature data', 'IMDB Movie Titles', 'Book Reviews from Amazon']
    for dataset in self.workspace.example_datasets:
        if (not hasattr(dataset, 'to_dataframe')):
            print('skipped (unsupported format): {0}'.format(dataset.name))
            continue
        if (dataset.size > max_size):
            print('skipped (max size): {0}'.format(dataset.name))
            continue
        if (dataset.name in skip):
            print('skipped: {0}'.format(dataset.name))
            continue
        print(('downloading: ' + dataset.name))
        frame = dataset.to_dataframe()
        print(('uploading: ' + dataset.name))
        dataset_name = (('unittest' + dataset.name) + id_generator())
        description = ('safe to be deleted - ' + dataset_name)
        self.workspace.datasets.add_from_dataframe(frame, dataset.data_type_id, dataset_name, description)

dataset/ETHPy150Open Azure/Azure-MachineLearning-ClientLibrary-Python/tests/roundtriptests.py RoundTripTests.test_azureml_example_datasets/original