code: def test_es(caplog, es_doc, name, exp, warns_lang):
      func = getattr(readability, name)
      obs = func(es_doc)
      assert obs == pytest.approx(exp, abs=1.0)
      assert (
          "but this readability statistic is intended for use on"
          not in caplog.text
      )
  
file_path: textacy/tests/text_stats/test_readability.py
imports: from contextlib import nullcontext
  import pytest
  import textacy
  from textacy.text_stats import readability
label_desc: Use image node_id 5 for calling a global function with example usage: test_es(caplog, es_doc, name, exp, warns_lang) without return types