code: def test_white_space_fix():
      sentences = [
          "sentence with a space",
          "sentence with multiple   spaces",
      ]
  
      expected_white_space_fixed_sents = [
          "sentence with a space",
          "sentence with multiple spaces",
      ]
  
      white_space_fixed_sents = [
          QAMetrics.white_space_fix(sent) for sent in sentences
      ]
  
      assert white_space_fixed_sents == expected_white_space_fixed_sents
  
file_path: NeMo/tests/collections/nlp/test_qna.py
imports: import collections
  import pytest
  import torch
  from nemo.collections.nlp.data.question_answering.dataset.qa_dataset import QADataset
  from nemo.collections.nlp.data.question_answering.dataset.qa_gpt_dataset import GPTQADataset
  from nemo.collections.nlp.metrics.qa_metrics import QAMetrics
label_desc: Use image node_id 2 for calling a global function with example usage: test_white_space_fix() without return types