code: def test_kwargs(self, kwargs, doc_en):
      result = extract.to_bag_of_words(doc_en, **kwargs)
      assert isinstance(result, dict)
  
file_path: textacy/tests/extract/test_bags.py
imports: import pytest
  import spacy
  from textacy import extract
label_desc: Use image node_id 4 for calling the TestBagOfWords obj's underlying member method code with example usage: obj.test_kwargs(kwargs, doc_en) without return types