code: def test_doc_retokenize_lex_attrs(en_tokenizer):
      """Test that lexical attributes can be changed (see #2390)."""
      doc = en_tokenizer("WKRO played beach boys songs")
      assert not any(token.is_stop for token in doc)
      with doc.retokenize() as retokenizer:
          retokenizer.merge(
              doc[2:4], attrs={"LEMMA": "boys", "IS_STOP": True}
          )
      assert doc[2].text == "beach boys"
      assert doc[2].lemma_ == "boys"
      assert doc[2].is_stop
      new_doc = Doc(doc.vocab, words=["beach boys"])
      assert new_doc[0].is_stop
  
imports: import pytest
  from spacy.attrs import LEMMA
  from spacy.tokens import Doc, Token
  from spacy.vocab import Vocab
label_desc: Use image node_id 6 for calling a global function with example usage: test_doc_retokenize_lex_attrs(en_tokenizer) without return types