code: def get_intents(infold):
      """Get list of intents from file names."""
      intents = [f[:-4] for f in os.listdir(infold)]
      intents.sort()
      logging.info(f"Found {len(intents)} intents")
  
      return intents
  
file_path: NeMo/scripts/dataset_processing/nlp/intent_and_slot/assistant_utils.py
imports: import os
  import re
  import shutil
  from nemo.collections.nlp.data.data_utils.data_preprocessing import DATABASE_EXISTS_TMP, if_exist, write_files
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling a global function with example usage: get_intents(infold) and returns: intents