code: def get_batches(directory, lang, prefix="all_avg_pool"):
      print(f"Finding in {directory}/{prefix}.{lang}*")
      files = glob.glob(f"{directory}/{prefix}.{lang}*")
      emb_files = []
      txt_files = []
      for emb_fi in files:
          emb_files.append(emb_fi)
          txt_fi = emb_fi.replace(prefix, "sentences")
          txt_files.append(txt_fi)
      return emb_files, txt_files
  
file_path: fairseq/examples/criss/mining/mine.py
imports: import argparse
  import glob
  from subprocess import check_call
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: get_batches(directory, lang, prefix) and returns: emb_files,  txt_files