code: def readLangs(lang1, lang2, reverse=False):
      print("Reading lines...")
  
      # Read the file and split into lines
      lines = (
          open("data/%s-%s.txt" % (lang1, lang2), encoding="utf-8")
          .read()
          .strip()
          .split("\n")
      )
  
      # Split every line into pairs and normalize
      pairs = [
          [normalizeString(s) for s in l.split("\t")] for l in lines
      ]
  
      # Reverse pairs, make Lang instances
      if reverse:
          pairs = [list(reversed(p)) for p in pairs]
          input_lang = Lang(lang2)
          output_lang = Lang(lang1)
      else:
          input_lang = Lang(lang1)
          output_lang = Lang(lang2)
  
      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 3 for calling a global function with example usage: readLangs(lang1, lang2, reverse) and returns: input_lang,  output_lang,  pairs