code: def get_predicted_intent(
      predictions: dict, intents: List[str]
  ) -> str:
      """
      Returns intent name with maximum score
      Args:
          predictions: predictions
          intents: list of possible intents for this service
      Returns:
          intent: predicted intent
      """
      assert len(predictions) == len(intents)
      active_intent_id = max(
          predictions, key=lambda k: predictions[k][0]["intent_status"]
      )
      intent = intents[active_intent_id]
      return intent
  
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 4 for calling a global function with example usage: get_predicted_intent(predictions, intents) and returns: intent