def _handle_picks(epochs):
 if any((('ICA' in k) for k in epochs.ch_names)):
  picks = pick_types(epochs.info, misc=True, ref_meg=False, exclude=[])
 else:
  picks = pick_types(epochs.info, meg=True, eeg=True, eog=True, ecg=True, seeg=True, ecog=True, ref_meg=False, fnirs=True, exclude=[])
 return picks

def _handle_picks ( epochs ) : if any ( ( ( 'ICA' in k ) for k in epochs . ch_names ) ) : picks = pick_types ( epochs . info , misc = True , ref_meg = False , exclude = [ ] ) else : picks = pick_types ( epochs . info , meg = True , eeg = True , eog = True , ecg = True , seeg = True , ecog = True , ref_meg = False , fnirs = True , exclude = [ ] ) return picks
handle picks .