code: def prepareData(lang1, lang2, reverse=False):
      input_lang, output_lang, pairs = readLangs(lang1, lang2, reverse)
      log.debug("Read %s sentence pairs" % len(pairs))
      # pairs = filterPairs(pairs)
      log.debug("Trimmed to %s sentence pairs" % len(pairs))
      log.debug("Counting words...")
      for pair in pairs:
          input_lang.addSentence(pair[0])
          output_lang.addSentence(pair[1])
      log.debug("Counted words:")
      log.debug(input_lang.name, input_lang.n_words)
      log.debug(output_lang.name, output_lang.n_words)
      return input_lang, output_lang, pairs
  
imports: from __future__ import unicode_literals, print_function, division
  import math
  import time
  from io import open
  import unicodedata
  import string
  import re
  import random
  import operator
  import torch
  import torch.nn
  from torch import optim
  import torch.nn.functional
  from lightwood.helpers.torch import LightwoodAutocast
  from lightwood.helpers.log import log
label_desc: Use image node_id 4 for calling a global function with example usage: prepareData(lang1, lang2, reverse) and returns: input_lang,  output_lang,  pairs