code: def test_n_monosyllable_words(doc, words):
      n_monosyllable_words = basics.n_monosyllable_words(doc, lang="en")
      n_monosyllable_words_by_words = basics.n_monosyllable_words(
          words, lang="en"
      )
      assert n_monosyllable_words == pytest.approx(18, rel=0.05)
      assert n_monosyllable_words == n_monosyllable_words_by_words
  
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 10 for calling a global function with example usage: test_n_monosyllable_words(doc, words) without return types