code: def test_reassembly_reference_failures():
      """
      Check that the reassembly code complains correctly when the user adds tokens that doesn't exist
      """
  
      bad_addition_tokenization = [
          ["Joe", "Smith", "lives", "in", "Southern", "California", "."]
      ]
      bad_addition_mwts = [
          [False for _ in range(len(bad_addition_tokenization[0]))]
      ]
      bad_addition_expansions = [
          [None for _ in range(len(bad_addition_tokenization[0]))]
      ]
  
      bad_inline_tokenization = [
          ["Joe", "Smith", "lives", "in", "Californiaa", "."]
      ]
      bad_inline_mwts = [
          [False for _ in range(len(bad_inline_tokenization[0]))]
      ]
      bad_inline_expansions = [
          [None for _ in range(len(bad_inline_tokenization[0]))]
      ]
  
      good_tokenization = [
          ["Joe", "Smith", "lives", "in", "California", "."]
      ]
      good_mwts = [[False for _ in range(len(good_tokenization[0]))]]
      good_expansions = [
          [None for _ in range(len(good_tokenization[0]))]
      ]
  
      text = "Joe Smith lives in California."
  
      with pytest.raises(ValueError):
          utils.reassemble_doc_from_tokens(
              bad_addition_tokenization,
              bad_addition_mwts,
              bad_addition_expansions,
              text,
          )
  
      with pytest.raises(ValueError):
          utils.reassemble_doc_from_tokens(
              bad_inline_tokenization,
              bad_inline_mwts,
              bad_inline_mwts,
              text,
          )
  
      utils.reassemble_doc_from_tokens(
          good_tokenization, good_mwts, good_expansions, text
      )
  
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 7 for calling a global function with example usage: test_reassembly_reference_failures() without return types