code: def get_args():
      parser = argparse.ArgumentParser(
          description="It is a script for verifying language in machine translation data sets. If the script is used on "
          "a parallel corpus, it verifies both a source and a target language. If number of jobs `--num-jobs` is bigger "
          "than 1 than lines in an input file (or files if parallel corpus is checked) split equally between workers. "
          "If `num_jobs > 1` is used, the best performance is achieved if dataset is shuffled and lines with different "
          "lengths are distributed evenly in the input file. Filtered data is stored into `output_src`[, `--output-tgt`]"
          " and removed lines are put into `removed_src`[, `--removed-tgt`] files. If language cannot be detected "
          "(e.g. date), the line is removed. Working time on en-de wikimatrix (6.23M pairs: 700 MB German and 625 MB "
          "English) from wmt20 on machine with 20 CPU cores: less than 1 minute."
      )
      parser.add_argument(
          "--input-src",
          "-s",
          help="Path to the input file which has to contain text in language `source_lang`.",
          required=True,
          type=Path,
      )
      parser.add_argument(
          "--input-tgt",
          "-t",
          help="Path to the input file which has to contain text in language `target_lang`. If not provided, data is "
          "processed as monolingual.",
          type=Path,
      )
      parser.add_argument(
          "--output-src",
          "-S",
          help="Path to the file where filtered `input_src` will be saved.",
          required=True,
          type=Path,
      )
      parser.add_argument(
          "--output-tgt",
          "-T",
          help="Path to the output target file",
          type=Path,
      )
      parser.add_argument(
          "--source-lang",
          "-l",
          required=True,
          help="Input language. For options see https://fasttext.cc/docs/en/language-identification.html.",
      )
      parser.add_argument(
          "--target-lang",
          "-L",
          help="Output language. For options see https://fasttext.cc/docs/en/language-identification.html.",
      )
      parser.add_argument(
          "--removed-src",
          "-r",
          required=True,
          help="Path to file where removed source lines will be saved",
          type=Path,
      )
      parser.add_argument(
          "--removed-tgt",
          "-R",
          help="Path to file where removed target lines will be saved",
          type=Path,
      )
      parser.add_argument(
          "--num-jobs",
          "-j",
          type=int,
          help="Number of jobs. By default, the number of jobs is equal to the number of CPU cores.",
      )
      parser.add_argument(
          "--fasttext-model",
          "-m",
          help="Path to fasttext model. The description and download links are here "
          "https://fasttext.cc/docs/en/language-identification.html",
          type=Path,
      )
      args = parser.parse_args()
      if not (
          args.output_tgt is None
          and args.input_tgt is None
          and args.target_lang is None
          and args.removed_tgt is None
          or args.output_tgt is not None
          and args.input_tgt is not None
          and args.target_lang is not None
          and args.removed_tgt is not None
      ):
          raise ValueError(
              f"Arguments `input_tgt`, `output_tgt`, `target_lang`, `removed_tgt` have to be either `None` "
              f"simultaneously or not `None` simultaneously. Given "
              f"input_tgt={args.input_tgt}, output_tgt={args.output_tgt}, target_lang={args.target_lang}, "
              f"removed_tgt={args.removed_tgt}"
          )
      args.input_src = args.input_src.expanduser()
      if args.input_tgt is not None:
          args.input_tgt = args.input_tgt.expanduser()
      args.output_src = args.output_src.expanduser()
      if args.output_tgt is not None:
          args.output_tgt = args.output_tgt.expanduser()
      args.removed_src = args.removed_src.expanduser()
      if args.removed_tgt is not None:
          args.removed_tgt = args.removed_tgt.expanduser()
      args.fasttext_model = args.fasttext_model.expanduser()
      return args
  
imports: import argparse
  import logging
  import multiprocessing
  import re
  import shutil
  import warnings
  from pathlib import Path
  from time import sleep
  import fasttext
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: get_args() and returns: args