code: def test_doc_retokenize_split_extension_attrs_invalid(
      en_vocab, underscore_attrs
  ):
      Token.set_extension("x", default=False, force=True)
      Token.set_extension("a", getter=lambda x: x, force=True)
      Token.set_extension("b", method=lambda x: x, force=True)
      doc = Doc(en_vocab, words=["LosAngeles", "start"])
      attrs = {"_": underscore_attrs}
      with pytest.raises(ValueError):
          with doc.retokenize() as retokenizer:
              heads = [(doc[0], 1), doc[1]]
              retokenizer.split(
                  doc[0], ["Los", "Angeles"], heads, attrs=attrs
              )
  
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 10 for calling a global function with example usage: test_doc_retokenize_split_extension_attrs_invalid(en_vocab, underscore_attrs) without return types