code: def extra_bitex(
      ted_data_path,
      lsrc_lang,
      ltrg_lang,
      target_token,
      output_data_path,
  ):
      def get_ted_lang(lang):
          long_langs = ["pt-br", "zh-cn", "zh-tw", "fr-ca"]
          if lang[:5] in long_langs:
              return lang[:5]
          elif lang[:4] == "calv":
              return lang[:5]
          elif lang in ["pt_BR", "zh_CN", "zh_TW", "fr_CA"]:
              return lang.lower().replace("_", "-")
          return lang[:2]
  
      src_lang = get_ted_lang(lsrc_lang)
      trg_lang = get_ted_lang(ltrg_lang)
      train_lang_dict = {"source": [src_lang], "target": [trg_lang]}
      eval_lang_dict = {"source": [src_lang], "target": [trg_lang]}
  
      obj = MultiLingualAlignedCorpusReader(
          corpus_path=ted_data_path,
          lang_dict=train_lang_dict,
          target_token=target_token,
          corpus_type="file",
          eval_lang_dict=eval_lang_dict,
          zero_shot=False,
          bilingual=True,
      )
  
      os.makedirs(output_data_path, exist_ok=True)
      lsrc_lang = lsrc_lang.replace("-", "_")
      ltrg_lang = ltrg_lang.replace("-", "_")
      obj.save_file(
          output_data_path
          + f"/train.{lsrc_lang}-{ltrg_lang}.{lsrc_lang}",
          split_type="train",
          data_type="source",
          lang=src_lang,
      )
      obj.save_file(
          output_data_path
          + f"/train.{lsrc_lang}-{ltrg_lang}.{ltrg_lang}",
          split_type="train",
          data_type="target",
          lang=trg_lang,
      )
  
      obj.save_file(
          output_data_path
          + f"/test.{lsrc_lang}-{ltrg_lang}.{lsrc_lang}",
          split_type="test",
          data_type="source",
          lang=src_lang,
      )
      obj.save_file(
          output_data_path
          + f"/test.{lsrc_lang}-{ltrg_lang}.{ltrg_lang}",
          split_type="test",
          data_type="target",
          lang=trg_lang,
      )
  
      obj.save_file(
          output_data_path
          + f"/valid.{lsrc_lang}-{ltrg_lang}.{lsrc_lang}",
          split_type="dev",
          data_type="source",
          lang=src_lang,
      )
      obj.save_file(
          output_data_path
          + f"/valid.{lsrc_lang}-{ltrg_lang}.{ltrg_lang}",
          split_type="dev",
          data_type="target",
          lang=trg_lang,
      )
  
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 6 for calling a global function with example usage: extra_bitex(ted_data_path, lsrc_lang, ltrg_lang, target_token, output_data_path) and returns: lang, lang, lang, lang