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.75):
      """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"),
      ]
  
      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
      )
      self.split_files_txt(
          txtname[1], image_files_npy, label_files_npy, train_split
      )
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/prepare_msd.py
imports: import os
  import os.path
  import sys
  from prepare import Prep
  from preprocess_utils import HUNorm, resample, parse_msd_basic_info, join_paths
  from medicalseg.utils import wrapped_partial
label_desc: Use image node_id 2 for calling the Prep_msd obj's underlying member method code with example usage: obj.generate_txt(train_split) without return types