code: def get_intent_queries(infold, intent_names, mode):
      """Get list of queries with their corresponding intent number."""
      intent_queries = ["sentence\tlabel\n"]
  
      for index, intent in enumerate(intent_names):
          queries = open(
              f"{infold}/{mode}set/{intent}.csv", "r", encoding="utf-8"
          ).readlines()
          for query in queries[1:]:
              phrases = query.split(";")
              intent_query = phrases[4][1:-1] + "\t" + str(index)
              intent_queries.append(intent_query)
  
      return intent_queries
  
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 3 for calling a global function with example usage: get_intent_queries(infold, intent_names, mode) and returns: intent_queries