code: def get_requested_slot(
      predictions: dict, slots: List[str]
  ) -> List[str]:
      """
      Returns list of slots which are predicted to be requested
      Args:
          predictions: predictions
          slots: list of possible slots
      Returns:
          requested_slots: list of requested slots
      """
      active_indices = [
          k
          for k in predictions
          if predictions[k][0]["req_slot_status"] > REQ_SLOT_THRESHOLD
      ]
      requested_slots = list(map(lambda k: slots[k], active_indices))
      return requested_slots
  
file_path: NeMo/nemo/collections/nlp/data/dialogue/sgd/prediction_utils.py
imports: import json
  import os
  from collections import OrderedDict, defaultdict
  from typing import Dict, List, Optional
  from nemo.collections.nlp.data.dialogue.input_example.sgd_input_example import STATUS_ACTIVE, STATUS_DONTCARE, STR_DONTCARE
  from nemo.utils import logging
label_desc: Use image node_id 5 for calling a global function with example usage: get_requested_slot(predictions, slots) and returns: requested_slots