code: def get_requested_slots_f1(frame_ref, frame_hyp):
      """Get requested slots F1 scores of a frame.
  
      Args:
        frame_ref: single semantic frame from reference (ground truth) file.
        frame_hyp: single semantic frame from hypothesis (prediction) file.
  
      Returns:
        A F1Scores object containing F1, precision, and recall scores.
      """
      return compute_f1(
          frame_ref["state"]["requested_slots"],
          frame_hyp["state"]["requested_slots"],
      )
  
file_path: NeMo/nemo/collections/nlp/metrics/sgd_metrics.py
imports: import collections
  import numpy
  from rapidfuzz import fuzz
label_desc: Use image node_id 7 for calling a global function with example usage: get_requested_slots_f1(frame_ref, frame_hyp) and returns: compute_f1