code: def test_n_chars(doc, words):
      n_chars = basics.n_chars(doc)
      n_chars_by_words = basics.n_chars(words)
      assert n_chars == pytest.approx(126, rel=0.05)
      assert n_chars == n_chars_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 6 for calling a global function with example usage: test_n_chars(doc, words) without return types