code: def test_entropy(doc, words):
      val_doc = basics.entropy(doc)
      val_words = basics.entropy(words)
      assert val_doc == pytest.approx(4.623516641218013, abs=1e-4)
      assert val_words == pytest.approx(4.623516641218013, abs=1e-4)
  
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 13 for calling a global function with example usage: test_entropy(doc, words) without return types