code: def test_simple_kwargs(self, kwargs, doc_en):
      result = extract.to_bag_of_terms(doc_en, **kwargs)
      assert isinstance(result, dict)
      assert all(
          isinstance(key, str) and isinstance(val, int)
          for key, val in result.items()
      )
  
file_path: textacy/tests/extract/test_bags.py
imports: import pytest
  import spacy
  from textacy import extract
label_desc: Use image node_id 2 for calling the TestBagOfTerms obj's underlying member method code with example usage: obj.test_simple_kwargs(kwargs, doc_en) without return types