code: def get_messed_up_test_pairs(split, directions):
      test_pairs = [
          (d, load_pairs(raw_data, split, d)) for d in directions
      ]
      # all_test_data = {s for _, d in test_data for s in d}
      all_test_pairs = {}
      for direction, d in test_pairs:
          src, tgt = direction.split("-")
          for s in d:
              langs = all_test_pairs.get(s, set())
              langs.add(src)
              langs.add(tgt)
              all_test_pairs[s] = langs
      mess_up_train_pairs = {}
      for direction in directions:
          check_train_pairs(
              raw_data, direction, all_test_pairs, mess_up_train_pairs
          )
      return all_test_pairs, mess_up_train_pairs
  
file_path: fairseq/examples/multilingual/data_scripts/remove_valid_test_in_train.py
imports: import os, sys
  import glob, itertools
  import pandas
label_desc: Use image node_id 13 for calling a global function with example usage: get_messed_up_test_pairs(split, directions) and returns: all_test_pairs,  mess_up_train_pairs