def concat_windows_dataset():
    """Generates a small BaseConcatDataset out of WindowDatasets extracted
    from the physionet database.
    """
    subject_id = 22
    event_codes = [5, 6, 9, 10, 13, 14]
    physionet_paths = mne.datasets.eegbci.load_data(
        subject_id, event_codes, update_path=False
    )

    parts = [
        mne.io.read_raw_edf(path, preload=True, stim_channel="auto")
        for path in physionet_paths
    ]
    list_of_epochs = [
        mne.Epochs(raw, [[0, 0, 0]], tmin=0, baseline=None) for raw in parts
    ]
    windows_datasets = create_from_mne_epochs(
        list_of_epochs,
        window_size_samples=50,
        window_stride_samples=50,
        drop_last_window=False,
    )

    return windows_datasets
Generates a small BaseConcatDataset out of WindowDatasets extracted
    from the physionet database.
    
test/unit_tests/augmentation/test_base.py