code: def noncat_slot_value_match(str_ref_list, str_hyp, use_fuzzy_match):
      """Calculate non-categorical slots correctness.
      Args:
        str_ref_list: a list of reference strings.
        str_hyp: the hypothesis string.
        use_fuzzy_match: whether to use fuzzy string matching.
      Returns:
        score: The highest fuzzy string match score of the references and hypotheis.
      """
      score = 0.0
      for str_ref in str_ref_list:
          if use_fuzzy_match:
              match_score = fuzzy_string_match(str_ref, str_hyp)
          else:
              match_score = float(str_ref == str_hyp)
          score = max(score, match_score)
      return score
  
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 3 for calling a global function with example usage: noncat_slot_value_match(str_ref_list, str_hyp, use_fuzzy_match) and returns: score