code: def test_doc_retokenize_split_heads_error(en_vocab):
      doc = Doc(en_vocab, words=["LosAngeles", "start", "."])
      # Not enough heads
      with pytest.raises(ValueError):
          with doc.retokenize() as retokenizer:
              retokenizer.split(doc[0], ["Los", "Angeles"], [doc[1]])
  
      # Too many heads
      with pytest.raises(ValueError):
          with doc.retokenize() as retokenizer:
              retokenizer.split(
                  doc[0], ["Los", "Angeles"], [doc[1], doc[1], doc[1]]
              )
  
file_path: spaCy/spacy/tests/doc/test_retokenize_split.py
imports: import numpy
  import pytest
  from spacy.tokens import Doc, Token
  from spacy.vocab import Vocab
label_desc: Use image node_id 5 for calling a global function with example usage: test_doc_retokenize_split_heads_error(en_vocab) without return types