code: def get_incorrect_labels(docs):
      incorrect_labels_docs = []
      for doc in docs:
          if doc["ground_truth_labels"] != doc["generated_labels"]:
              incorrect_labels_docs.append(
                  {
                      "input": doc["input"],
                      "ground_truth_labels": doc["ground_truth_labels"],
                      "generated_labels": doc["generated_labels"],
                  }
              )
      return incorrect_labels_docs
  
file_path: NeMo/examples/nlp/dialogue/analyse_prediction_results.py
imports: import argparse
  import json
  import re
  import numpy
  from nemo.collections.nlp.metrics.dialogue_metrics import DialogueGenerationMetrics
label_desc: Use image node_id 2 for calling a global function with example usage: get_incorrect_labels(docs) and returns: incorrect_labels_docs