def _unpack_epochs(epochs):
 if (len(epochs.event_id) > 1):
  epochs = [epochs[k] for k in epochs.event_id]
 else:
  epochs = [epochs]
 return epochs

def _unpack_epochs ( epochs ) : if ( len ( epochs . event_id ) > 1 ) : epochs = [ epochs [ k ] for k in epochs . event_id ] else : epochs = [ epochs ] return epochs
aux function .