code: def pretokenize(in_path: str, out_path: str, src: str, tgt: str):
      Args = namedtuple(
          "Args",
          [
              "moses_source_lang",
              "moses_target_lang",
              "moses_no_dash_splits",
              "moses_no_escape",
          ],
      )
      args = Args(
          moses_source_lang=src,
          moses_target_lang=tgt,
          moses_no_dash_splits=False,
          moses_no_escape=False,
      )
      pretokenizer = MosesTokenizer(args)
      with open(in_path) as f, open(out_path, "w") as f_o:
          for s in f:
              f_o.write(pretokenizer.encode(s.strip()) + "\n")
  
imports: import argparse
  import os
  import os.path
  from collections import namedtuple
  from multiprocessing import cpu_count
  from typing import List, Optional
  import sentencepiece
  from fairseq.data.encoders.byte_bpe import ByteBPE
  from fairseq.data.encoders.byte_utils import byte_encode
  from fairseq.data.encoders.bytes import Bytes
  from fairseq.data.encoders.characters import Characters
  from fairseq.data.encoders.moses_tokenizer import MosesTokenizer
  from fairseq.data.encoders.sentencepiece_bpe import SentencepieceBPE
label_desc: Use image node_id 5 for calling a global function with example usage: pretokenize(in_path, out_path, src, tgt) without return types