def load_data_dictionary(self):
        # initialization
        slices = []
        j = 0
        # TODO: change the name of files to find to a more general structure
        for subject_dir in os.listdir(self.param.path_dictionary):
            subject_path = self.param.path_dictionary + '/' + subject_dir
            if os.path.isdir(subject_path):
                for file_name in os.listdir(subject_path):
                    if 'im' in file_name:  # or 'seg_in' in file_name:
                        slice_level = 0
                        name_list = file_name.split('_')
                        for word in name_list:
                            if word.upper() in self.level_label.values():
                                slice_level = get_key_from_val(self.level_label, word.upper())

                        slices.append(Slice(slice_id=j, im=Image(subject_path + '/' + file_name).data, level=slice_level, reg_to_m=[]))

                        seg_file = sct.extract_fname(file_name)[1][:-3] + '_seg.nii.gz'
                        slices[j].set(gm_seg=Image(subject_path + '/' + seg_file).data)
                        j += 1

        return np.asarray(slices)

    # ------------------------------------------------------------------------------------------------------------------
Opening zip files containing more than one member files should fail
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/dev/sct_segment_gray_matter_asman/2015-08-17-full_scripts_before_cleaning/sct_asman.py/ModelDictionary.load_data_dictionary--crossover with--dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_core.py/TestFileFunctions.test_open_multiple_member_zipfile