code: def test_get_average_dist_to_tok_start_and_end():
      _DocSpan = collections.namedtuple("DocSpan", ["start", "length"])
  
      doc_span = _DocSpan(start=0, length=5)
  
      tok_start_position = 1
      tok_end_position = 3
  
      assert 2 == SquadDataset.get_average_dist_to_tok_start_and_end(
          doc_span, tok_start_position, tok_end_position
      )
  
      doc_span = _DocSpan(start=5, length=5)
  
      tok_start_position = 1
      tok_end_position = 2
  
      assert 6 == SquadDataset.get_average_dist_to_tok_start_and_end(
          doc_span, tok_start_position, tok_end_position
      )
  
      doc_span = _DocSpan(start=5, length=4)
  
      tok_start_position = 1
      tok_end_position = 2
  
      assert 5 == SquadDataset.get_average_dist_to_tok_start_and_end(
          doc_span, tok_start_position, tok_end_position
      )
  
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 6 for calling a global function with example usage: test_get_average_dist_to_tok_start_and_end() without return types