code: def test_builder_get_spans(bert_example_builder):
      span_info_parts = [
          "CUSTOM 37 41",
          "CUSTOM 47 52",
          "CUSTOM 42 46",
          "CUSTOM 0 7",
      ]
      gold_sorted_spans = [
          (1, 1, 8),
          (1, 38, 42),
          (1, 43, 47),
          (1, 48, 53),
      ]
      spans = bert_example_builder._get_spans(span_info_parts)
      spans.sort()
      assert spans == gold_sorted_spans
  
file_path: NeMo/tests/collections/nlp/test_spellchecking_asr_customization.py
imports: import pytest
  from transformers import AutoTokenizer
  from nemo.collections.nlp.data.spellchecking_asr_customization.bert_example import BertExampleBuilder
  from nemo.collections.nlp.data.spellchecking_asr_customization.utils import apply_replacements_to_text, substitute_replacements_in_text
label_desc: Use image node_id 5 for calling a global function with example usage: test_builder_get_spans(bert_example_builder) without return types