code: def prepare_segments_text_utt2spk_manager(
      transcription_dir, set_type, store_dir, processing_num=1
  ):
      if processing_num > 1:
          pool = Pool(processes=processing_num)
          all_result = []
          for i in range(processing_num):
              part_result = pool.apply_async(
                  prepare_segments_text_utt2spk_worker,
                  kwds={
                      "transcription_dir": transcription_dir,
                      "set_type": set_type,
                      "store_dir": store_dir,
                      "processing_id": i,
                      "processing_num": processing_num,
                  },
              )
              all_result.append(part_result)
          pool.close()
          pool.join()
          segments_lines, text_sentence_lines, utt2spk_lines = (
              [],
              [],
              [],
          )
          for item in all_result:
              (
                  part_segments_lines,
                  part_text_sentence_lines,
                  part_utt2spk_lines,
              ) = item.get()
              segments_lines += part_segments_lines
              text_sentence_lines += part_text_sentence_lines
              utt2spk_lines += part_utt2spk_lines
      else:
          (
              segments_lines,
              text_sentence_lines,
              utt2spk_lines,
          ) = prepare_segments_text_utt2spk_worker(
              transcription_dir=transcription_dir,
              set_type=set_type,
              store_dir=store_dir,
          )
  
      text2lines(
          textpath="{}/temp/segments".format(store_dir),
          lines_content=segments_lines,
      )
      text2lines(
          textpath="{}/temp/text_sentence".format(store_dir),
          lines_content=text_sentence_lines,
      )
      text2lines(
          textpath="{}/temp/utt2spk".format(store_dir),
          lines_content=utt2spk_lines,
      )
      return None
  
imports: import argparse
  import codecs
  import glob
  import os
  import sys
  from multiprocessing import Pool
label_desc: Use image node_id 8 for calling a global function with example usage: prepare_segments_text_utt2spk_manager(transcription_dir, set_type, store_dir, processing_num) and returns: None