code: def test_builder_get_fragment_indices(bert_example_builder):
      hyp = (
          "a b o u t _ o u r _ s h i p e r s _ b u t _ y o u _ k n o w"
      )
      targets = [1]
      # a b o u t _ o u r _ s h i p e r s _ b u t _ y o u _ k n o w
      # 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
      span_info_parts = ["CUSTOM 8 17"]
      gold_sorted_fragment_indices = [(7, 18, 1), (11, 18, 1)]
      fragment_indices = bert_example_builder._get_fragment_indices(
          hyp, targets, span_info_parts
      )
      fragment_indices.sort()
      assert fragment_indices == gold_sorted_fragment_indices
  
      # a b o u t _ o u r _ s h i p e r s _ b u t _ y o u _ k n o w
      # 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
      span_info_parts = ["CUSTOM 10 16"]
      gold_sorted_fragment_indices = [(11, 18, 1)]
      fragment_indices = bert_example_builder._get_fragment_indices(
          hyp, targets, span_info_parts
      )
      fragment_indices.sort()
      assert fragment_indices == gold_sorted_fragment_indices
  
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 6 for calling a global function with example usage: test_builder_get_fragment_indices(bert_example_builder) without return types