code: def test_underscore_accepts_valid(valid_kwargs):
      valid_kwargs["force"] = True
      Doc.set_extension("test", **valid_kwargs)
  
file_path: spaCy/spacy/tests/doc/test_underscore.py
imports: import pytest
  from mock import Mock
  from spacy.tokens import Doc, Span, Token
  from spacy.tokens.underscore import Underscore
label_desc: Use image node_id 10 for calling a global function with example usage: test_underscore_accepts_valid(valid_kwargs) without return types