code: def test_reassembly_indexing():
      """
      Check that the reassembly code counts the indicies correctly, and including OOV chars.
      """
  
      good_tokenization = [
          ["I", "am", "Joe.", "⭆⊱⇞", "Hi", "."],
          ["I'm", "a", "chicken", "."],
      ]
      good_mwts = [
          [False for _ in range(len(i))] for i in good_tokenization
      ]
      good_expansions = [
          [None for _ in range(len(i))] for i in good_tokenization
      ]
  
      text = "I am Joe. ⭆⊱⇞ Hi. I'm a chicken."
  
      target_doc = [
          [
              {"id": 1, "text": "I", "start_char": 0, "end_char": 1},
              {"id": 2, "text": "am", "start_char": 2, "end_char": 4},
              {"id": 3, "text": "Joe.", "start_char": 5, "end_char": 9},
              {
                  "id": 4,
                  "text": "⭆⊱⇞",
                  "start_char": 10,
                  "end_char": 13,
              },
              {"id": 5, "text": "Hi", "start_char": 14, "end_char": 16},
              {"id": 6, "text": ".", "start_char": 16, "end_char": 17},
          ],
          [
              {
                  "id": 1,
                  "text": "I'm",
                  "start_char": 18,
                  "end_char": 21,
              },
              {"id": 2, "text": "a", "start_char": 22, "end_char": 23},
              {
                  "id": 3,
                  "text": "chicken",
                  "start_char": 24,
                  "end_char": 31,
              },
              {"id": 4, "text": ".", "start_char": 31, "end_char": 32},
          ],
      ]
  
      res = utils.reassemble_doc_from_tokens(
          good_tokenization, good_mwts, good_expansions, text
      )
  
      assert res == target_doc
  
file_path: stanza/stanza/tests/tokenization/test_tokenize_utils.py
imports: import pytest
  import stanza
  from stanza import Pipeline
  from stanza.tests import *
  from stanza.models.common import doc
  from stanza.models.tokenization import data
  from stanza.models.tokenization import utils
label_desc: Use image node_id 6 for calling a global function with example usage: test_reassembly_indexing() without return types