def _generate_mne_pre_processor(function):
    """
    Generate a class based on an MNE function for preprocessing.
    """
    class_name = "".join(word.title() for word in function.__name__.split("_")).replace(
        "Eeg", "EEG"
    )
    import_path = f"{function.__module__}.{function.__name__}"
    doc = f" See more details in {import_path}"

    base_classes = (Preprocessor,)
    class_attrs = {
        "__init__": _generate_init_method(function),
        "__doc__": _update_moabb_docstring(function, doc),
        "fn": function.__name__,
    }
    generated_class = type(class_name, base_classes, class_attrs)

    return generated_class

    Generate a class based on an MNE function for preprocessing.
    
braindecode/preprocessing/mne_preprocess.py