import everything inside the functions. otherwise people who don't have sklearn installed cannot import mne.