code: def main():
      parser = argparse.ArgumentParser()
      parser.add_argument("in_dir", type=str)
      parser.add_argument("out_dir", type=str)
      args = parser.parse_args()
  
      os.makedirs(args.out_dir, exist_ok=True)
  
      for file in ["hyp", "ref"]:
          for sev, spks in severity2spks.items():
              filter_text(
                  os.path.join(args.in_dir, f"{file}.trn"),
                  os.path.join(args.out_dir, f"{file}.{sev}.trn"),
                  spks,
              )
  
imports: import argparse
  import os
  from typing import Iterable
  from data import severity2spks, utt2spk
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types