code: def get_file_str(
      path,
      num_files,
      labelled=False,
      valid_split=None,
      split_count_thre=None,
      subset_pct=100,
  ):
      """
      Create unique file name for processed data from the number of files, directory name,
      validation split type, and subset percentage
      """
      # grab the directory name as part of the names
      dir_name = (
          path.split("/")[-1]
          if len(path.split("/")[-1]) > 0
          else path.split("/")[-2]
      )
      label_str = "labelled" if labelled else ""
      split_thre_str = (
          "thre_{}".format(split_count_thre) if split_count_thre else ""
      )
      dir_str = "doc_{}_{}_{}_{}".format(
          label_str, dir_name, num_files, split_thre_str
      )
      if valid_split:
          split_str = "_split_{}".format(valid_split * 100)
      else:
          split_str = ""
      if subset_pct != 100:
          subset_str = "_subset_{}".format(subset_pct)
      else:
          subset_str = ""
      file_str = dir_str + split_str + subset_str
      return file_str
  
file_path: neon/examples/skip-thought/data_loader.py
imports: from __future__ import print_function
  import os
  import h5py
  import json
  import numpy
  from collections import defaultdict, OrderedDict
  import sys
  from neon import logger
  from neon.util.persist import load_obj, save_obj
  from util import tokenize, clean_string
label_desc: Use image node_id 5 for calling a global function with example usage: get_file_str(path, num_files, labelled, valid_split, split_count_thre, subset_pct) and returns: file_str