code: def test_default(self, doc_en):
      result = extract.to_bag_of_words(doc_en)
      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 1 for calling the TestBagOfWords obj's underlying member method code with example usage: obj.test_default(doc_en) without return types