def _check_h5py():
 try:
  import h5py
 except ImportError:
  raise ImportError('the h5py module is required to use HDF5 I/O')
 return h5py

def _check_h5py ( ) : try : import h5py except ImportError : raise ImportError ( 'the h5py module is required to use HDF5 I/O' ) return h5py
helper to check if h5py is installed .