def METHOD_NAME(self, split=1.0):
    """generate the train_list.txt and val_list.txt"""
    txtname = [
        join_paths(self.phase_path, 'train_list.txt'),
        join_paths(self.phase_path, 'val_list.txt')
    ]
    if self.image_files_test:
        txtname.append(join_paths(self.phase_path, 'test_list.txt'))
        test_file_npy = os.listdir(self.image_path_test)
    image_files_npy = os.listdir(self.image_path)
    label_files_npy = [
        name.replace(".npy", "_segmentation.npy")
        for name in image_files_npy  # to have the save order
    ]
    self.split_files_txt(
        txtname[0], image_files_npy, label_files_npy, split=split)
    self.split_files_txt(
        txtname[1], image_files_npy, label_files_npy, split=split)
    self.split_files_txt(txtname[2], test_file_npy)