def _check_mne(name):
    """Helper to check if h5py is installed"""
    try:
        import mne
    except ImportError:
        raise ImportError('Please install MNE-python to use %s.' % name)
    return mne
