code: def test_get_doc_spans():
      all_doc_tokens = ["a"] * 15
      max_tokens_for_doc = 10
      doc_stride = 5
      doc_spans = SquadDataset.get_docspans(
          all_doc_tokens, max_tokens_for_doc, doc_stride
      )
  
      assert len(doc_spans) == 2
      assert doc_spans[0].start == 0
      assert doc_spans[0].length == 10
      assert doc_spans[1].start == 5
      assert doc_spans[1].length == 10
  
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 5 for calling a global function with example usage: test_get_doc_spans() without return types