code: def tmx2raw(tmx, debug):
      to_file = tmx[0 : len(tmx) - len(".tmx")]
      to_folder = os.path.join(*os.path.split(tmx)[:-1])
      if os.path.exists(f"{to_folder}/bitext.en"):
          debug and print(
              f"{tmx} already extracted to {to_file}; so skip"
          )
          return to_file
      cmd = f"(cd {to_folder}; {TMX_TOOL} {tmx})"
      call(cmd, debug)
      return to_file
  
imports: from typing import NamedTuple, List
  from urllib.parse import urlparse
  import os, sys
  import subprocess
  from subprocess import check_call, check_output
  import glob
  import wget
  import re
  import multiprocessing
  from functools import partial
  import pathlib
  from collections import OrderedDict
label_desc: Use image node_id 14 for calling a global function with example usage: tmx2raw(tmx, debug) and returns: to_file, to_file