def to_pickle(self, path='', filename=None):

        if filename is None:
            filename = '{0.subject_id}-{1}-{0.trial_num:03}-{0.stimulus}.pkl'.format(self, 'a' if self.alcoholic else 'c')
        filename = os.path.join(path, filename)
        pickle.dump(self, open(filename, 'w'), pickle.HIGHEST_PROTOCOL)
>>> natural_sort('1 3 4 2 5'.split())
dataset/ETHPy150Open turambar/pyDatasets/pydatasets/uci/eeg.py/EegTrial.to_pickle--crossover with--dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/support/ngs_utils.py/natural_sort