code: def get_directions(folder):
      raw_files = glob.glob(f"{folder}/train*")
      directions = [
          os.path.split(file_path)[-1].split(".")[1]
          for file_path in raw_files
      ]
      return directions
  
file_path: fairseq/examples/multilingual/data_scripts/check_self_overlaps.py
imports: import os
  import glob
  import argparse
  from utils.dedup import deup
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: get_directions(folder) and returns: directions