code: def prepareData(lang1, lang2, reverse=False):
      input_lang, output_lang, pairs = readLangs(lang1, lang2, reverse)
      print("Read %s sentence pairs" % len(pairs))
      pairs = filterPairs(pairs)
      print("Trimmed to %s sentence pairs" % len(pairs))
      print("Counting words...")
      for pair in pairs:
          input_lang.addSentence(pair[0])
          output_lang.addSentence(pair[1])
      print("Counted words:")
      print(input_lang.name, input_lang.n_words)
      print(output_lang.name, output_lang.n_words)
      return input_lang, output_lang, pairs
  
file_path: skorch/examples/translation/data.py
imports: import unicodedata
  import string
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: prepareData(lang1, lang2, reverse) and returns: input_lang,  output_lang,  pairs