class_docstr: Dataset for training a Nearest Neighbour model for zero shot intent recognition.
code: def find_max_n_candidates(self):
      max_n = 0
      for idx in range(len(self.raw_features)):
          ex = self.raw_features[idx].data
          n = len(ex["possible_labels"]["intent"])
          max_n = max(max_n, n)
      return max_n
  
file_path: NeMo/nemo/collections/nlp/data/dialogue/dataset/dialogue_nearest_neighbour_dataset.py
imports: import torch
  from nemo.collections.nlp.data.dialogue.dataset.dialogue_dataset import DialogueDataset
label_desc: Use image node_id 2 for calling the DialogueNearestNeighbourDataset obj's underlying member method code with example usage: obj.find_max_n_candidates() and returns: max_n