def _check_h5py():
    """Helper to check if h5py is installed"""
    try:
        import h5py
    except __HOLE__:
        raise ImportError('the h5py module is required to use HDF5 I/O')
    return h5py
dataset/ETHPy150Open mne-tools/mne-python/mne/externals/h5io/_h5io.py/_check_h5py