code: def test_n_words(doc, words):
      n_doc = basics.n_words(doc)
      n_words = basics.n_words(words)
      assert n_doc == n_words == pytest.approx(26, rel=0.05)
  
file_path: textacy/tests/text_stats/test_basics.py
imports: import pytest
  from textacy import extract
  from textacy import make_spacy_doc
  from textacy.text_stats import basics
label_desc: Use image node_id 3 for calling a global function with example usage: test_n_words(doc, words) without return types