code: def de_tok(tok_file, lang):
      # seps = tok_file.split('.')
      # seps.insert(-1, 'detok')
      # de_tok_file = '.'.join(seps)
      de_tok_file = tok_file.replace(".tok.", ".")
      cmd = "perl {detok_cmd} -l {lang} < {tok_file} > {de_tok_file}".format(
          detok_cmd=detok_cmd,
          tok_file=tok_file,
          de_tok_file=de_tok_file,
          lang=lang[:2],
      )
      call(cmd)
  
imports: import itertools
  import os
  import csv
  from collections import defaultdict
  from six.moves import zip
  import io
  import wget
  import sys
  from subprocess import check_call, check_output
label_desc: Use image node_id 5 for calling a global function with example usage: de_tok(tok_file, lang) without return types