code: def test_f1_score():
      generated_field = "That is so good"
      ground_truth_field = "That is so awesome"
  
      f1 = f1_score(generated_field, ground_truth_field)
      assert f1 == 0.75
  
      generated_field = ""
      ground_truth_field = "That"
  
      f1 = f1_score(generated_field, ground_truth_field)
      assert f1 == 0
  
file_path: NeMo/tests/collections/nlp/test_question_answering.py
imports: import collections
  from pydoc import doc
  import pytest
  from nemo.collections.nlp.data.question_answering_squad.qa_dataset import SquadDataset
  from nemo.collections.nlp.data.question_answering_squad.qa_squad_processing import _get_tokens, exact_match_score, f1_score
label_desc: Use image node_id 2 for calling a global function with example usage: test_f1_score() without return types