code: def test_doc_extract_keyterms(doc):
      textacy.set_doc_extensions("extract")
      result = doc._.extract_keyterms(
          "textrank",
          normalize="lemma",
          window_size=10,
          edge_weighting="count",
          topn=10,
      )
      assert result and isinstance(result, list)
      assert all(isinstance(key, str) for key, _ in result)
      assert all(isinstance(val, float) for _, val in result)
      assert sorted([val for _, val in result], reverse=True) == [
          val for _, val in result
      ]
  
imports: import collections
  import itertools
  import re
  import pytest
  from spacy.tokens import Span
  import textacy
  import textacy.datasets
  import textacy.extract
  import textacy.preprocessing
label_desc: Use image node_id 14 for calling a global function with example usage: test_doc_extract_keyterms(doc) without return types