code: def get_f1(generated_fields, ground_truth_fields):
      total_p_r_f1 = np.array(
          [
              DialogueGenerationMetrics._get_one_f1(
                  generated_fields[i], ground_truth_fields[i]
              )
              for i in range(len(ground_truth_fields))
          ]
      )
      avg_p_r_f1 = np.mean(total_p_r_f1, axis=0)
      return avg_p_r_f1
  
file_path: NeMo/nemo/collections/nlp/metrics/dialogue_metrics.py
imports: import json
  from collections import Counter
  import numpy
  from sacrebleu import corpus_bleu
label_desc: Use image node_id 3 for calling the DialogueGenerationMetrics obj's underlying member method code with example usage: obj.get_f1(generated_fields, ground_truth_fields) and returns: avg_p_r_f1