code: def test_readability_method(ts_en, ts_es, lang, method_name, exp_val):
      ts = ts_en if lang == "en" else ts_es
      assert ts.readability(method_name) == pytest.approx(
          exp_val, rel=0.05
      )
  
file_path: textacy/tests/text_stats/test_api.py
imports: import collections
  from contextlib import nullcontext
  import pyphen
  import pytest
  import textacy
  import textacy.text_stats
label_desc: Use image node_id 5 for calling a global function with example usage: test_readability_method(ts_en, ts_es, lang, method_name, exp_val) without return types