docstr: generate the train_list.txt and val_list.txt
docstr_tok: ["generate","the","train_list.txt","and","val_list.txt"]
code: def generate_txt(self, train_split=0.8, test_split=0.95):
      """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"),
          join_paths(self.phase_path, "test_list.txt"),
      ]
      image_files_npy = os.listdir(self.image_path)
      label_files_npy = os.listdir(self.label_path)
      self.split_files_txt(
          txtname[0],
          image_files_npy,
          label_files_npy,
          train_split,
          test_split,
      )
      self.split_files_txt(
          txtname[1],
          image_files_npy,
          label_files_npy,
          train_split,
          test_split,
      )
      self.split_files_txt(
          txtname[2],
          image_files_npy,
          label_files_npy,
          train_split,
          test_split,
      )
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/prepare_msd_brain_seg.py
imports: import os
  import os.path
  import sys
  import time
  import numpy
  import nibabel
  import SimpleITK
  from tqdm import tqdm
  from prepare import Prep
  from tools.preprocess_utils import join_paths
label_desc: Use image node_id 2 for calling the PrepMSDBrain obj's underlying member method code with example usage: obj.generate_txt(train_split, test_split) without return types